mirror of
https://gitlab.sectorq.eu/jaydee/ansible.git
synced 2025-01-23 12:38:11 +00:00
bitwarden
This commit is contained in:
parent
44822bd37b
commit
7a538639c6
@ -1,24 +1,46 @@
|
|||||||
- name: Install vnc packages
|
- block:
|
||||||
ansible.builtin.apt:
|
|
||||||
name:
|
- name: Install vnc packages
|
||||||
- tigervnc-standalone-server
|
ansible.builtin.apt:
|
||||||
- tigervnc-common
|
name:
|
||||||
update_cache: yes
|
- tigervnc-standalone-server
|
||||||
|
- tigervnc-common
|
||||||
|
update_cache: yes
|
||||||
|
|
||||||
|
- name: Create a directory if it does not exist
|
||||||
|
ansible.builtin.file:
|
||||||
|
path: /home/jd/.vnc/
|
||||||
|
state: directory
|
||||||
|
mode: '0755'
|
||||||
|
owner: jd
|
||||||
|
group: jd
|
||||||
|
- 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: Creating a file with content
|
- name: Reconfigure vnc1
|
||||||
copy:
|
ansible.builtin.lineinfile:
|
||||||
dest: "/home/jd/.vnc/config"
|
path: /etc/tigervnc/vncserver.users
|
||||||
content: |
|
#regexp: "^:1=.*"
|
||||||
session=cinnamon
|
line: ':1=jd'
|
||||||
geometry=1200x721
|
|
||||||
localhost
|
|
||||||
alwaysshared
|
|
||||||
|
|
||||||
- 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 }}"
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user