bitwarden

This commit is contained in:
jaydee 2024-12-12 00:28:57 +01:00
parent 44822bd37b
commit 7a538639c6
2 changed files with 38 additions and 16 deletions

View File

@ -1,24 +1,46 @@
- name: Install vnc packages - block:
ansible.builtin.apt:
name:
- tigervnc-standalone-server
- tigervnc-common
update_cache: yes
- name: Install vnc packages
ansible.builtin.apt:
name:
- tigervnc-standalone-server
- tigervnc-common
update_cache: yes
- name: Creating a file with content - name: Create a directory if it does not exist
copy: ansible.builtin.file:
dest: "/home/jd/.vnc/config" path: /home/jd/.vnc/
content: | state: directory
session=cinnamon mode: '0755'
geometry=1200x721 owner: jd
localhost group: jd
alwaysshared - name: Creating a file with content
copy:
dest: "/home/jd/.vnc/config"
content: |
session=mate
geometry=1200x721
localhost
alwaysshared
mode: '0755'
owner: jd
group: jd
- name: Reconfigure vnc
ansible.builtin.lineinfile:
path: /etc/tigervnc/vncserver-config-defaults
regexp: "^$localhost =.* "
line: '$localhost = "no";'
- name: Reconfigure vnc1
ansible.builtin.lineinfile:
path: /etc/tigervnc/vncserver.users
#regexp: "^:1=.*"
line: ':1=jd'
- name: Reconfigure zabbix agent Server - name: Reconfigure zabbix agent Server
ansible.builtin.lineinfile: ansible.builtin.lineinfile:
path: "/etc/tigervnc/vncserver.users" path: "/etc/tigervnc/vncserver.users"
regexp: "^:1=jd" regexp: "^:1=jd"
line: ":1=jd" line: ":1=jd"
become: "{{ false if inventory_hostname == 'nas.home.lan' else true }}" become: "{{ false if inventory_hostname == 'nas.home.lan' else true }}"

View File

@ -1,4 +1,4 @@
--- ---
- hosts: datacenter - hosts: datacenter
roles: roles:
- ssh_banner - vnc_server