update..
This commit is contained in:
parent
dae762e43f
commit
0ffc26fdd9
@ -572,6 +572,11 @@ apt_remove:
|
|||||||
- tor
|
- tor
|
||||||
- tor-geoipdb
|
- tor-geoipdb
|
||||||
- torsocks
|
- torsocks
|
||||||
|
|
||||||
|
apt_remove_xenial:
|
||||||
|
- netplan.io
|
||||||
|
|
||||||
|
apt_remove_bionic:
|
||||||
- netplan.io
|
- netplan.io
|
||||||
|
|
||||||
apt_remove_purge: false
|
apt_remove_purge: false
|
||||||
|
@ -0,0 +1,10 @@
|
|||||||
|
[Desktop Entry]
|
||||||
|
Type=Application
|
||||||
|
Exec=x11vnc -rfbport -rfbauth /etc/x11vnc.pass
|
||||||
|
Hidden=false
|
||||||
|
NoDisplay=false
|
||||||
|
X-GNOME-Autostart-enabled=true
|
||||||
|
Name[de_DE]=X11VNC User-Service
|
||||||
|
Name=X11VNC User-Service
|
||||||
|
Comment[de_DE]=
|
||||||
|
Comment=
|
@ -265,6 +265,28 @@
|
|||||||
tags:
|
tags:
|
||||||
- apt-remove
|
- apt-remove
|
||||||
|
|
||||||
|
- name: (apt.yml) Remove unwanted packages Ubuntu bionic
|
||||||
|
apt:
|
||||||
|
name: "{{ apt_remove_bionic }}"
|
||||||
|
state: absent
|
||||||
|
purge: "{{ apt_remove_purge }}"
|
||||||
|
when:
|
||||||
|
- ansible_facts['distribution'] == "Ubuntu"
|
||||||
|
- ansible_facts['distribution_release'] == "bionic"
|
||||||
|
tags:
|
||||||
|
- apt-remove
|
||||||
|
|
||||||
|
- name: (apt.yml) Remove unwanted packages Ubuntu xenial
|
||||||
|
apt:
|
||||||
|
name: "{{ apt_remove_xenial }}"
|
||||||
|
state: absent
|
||||||
|
purge: "{{ apt_remove_purge }}"
|
||||||
|
when:
|
||||||
|
- ansible_facts['distribution'] == "Ubuntu"
|
||||||
|
- ansible_facts['distribution_release'] == "xenial"
|
||||||
|
tags:
|
||||||
|
- apt-remove
|
||||||
|
|
||||||
- name: (apt.yml) autoremove
|
- name: (apt.yml) autoremove
|
||||||
apt:
|
apt:
|
||||||
autoremove: true
|
autoremove: true
|
||||||
|
@ -110,7 +110,7 @@
|
|||||||
- system-user
|
- system-user
|
||||||
|
|
||||||
|
|
||||||
# tags supported inside :nis-install-server.yml
|
# tags supported inside nis-install-server.yml:
|
||||||
#
|
#
|
||||||
# nis-install-server
|
# nis-install-server
|
||||||
- import_tasks: nis-install-server.yml
|
- import_tasks: nis-install-server.yml
|
||||||
|
@ -88,3 +88,88 @@
|
|||||||
- system-user
|
- system-user
|
||||||
|
|
||||||
|
|
||||||
|
- name: (nis_user.yml) Check if directory ~/.config/autostart exists
|
||||||
|
stat:
|
||||||
|
path: '{{ nis_base_home }}/{{ item.name }}/.config/autostart'
|
||||||
|
loop: "{{ nis_user }}"
|
||||||
|
loop_control:
|
||||||
|
label: '{{ item.name }}'
|
||||||
|
register: home_config_autostart
|
||||||
|
tags:
|
||||||
|
- nis-user
|
||||||
|
- x11vnc
|
||||||
|
|
||||||
|
|
||||||
|
- name: (nis_user.yml) Ensure directory ~/.config/autostart if not exists
|
||||||
|
file:
|
||||||
|
path: '{{ nis_base_home }}/{{ item.item.name }}/.config/autostart'
|
||||||
|
state: directory
|
||||||
|
owner: "{{ item.item.name }}"
|
||||||
|
group: "{{ item.item.name }}"
|
||||||
|
mode: 0700
|
||||||
|
recurse: yes
|
||||||
|
loop: "{{ home_config_autostart.results }}"
|
||||||
|
loop_control:
|
||||||
|
label: '{{ item.item.name }}'
|
||||||
|
when : not item.stat.exists|bool
|
||||||
|
tags:
|
||||||
|
- nis-user
|
||||||
|
- x11vnc
|
||||||
|
|
||||||
|
|
||||||
|
#- name: (nis_user.yml) Ensure directory ~/.config/autostart if not exists
|
||||||
|
# file:
|
||||||
|
# path: '{{ nis_base_home }}/{{ item.name }}/.config/autostart'
|
||||||
|
# state: directory
|
||||||
|
# owner: "{{ item.name }}"
|
||||||
|
# group: "{{ item.name }}"
|
||||||
|
# mode: 0700
|
||||||
|
# recurse: yes
|
||||||
|
# loop: "{{ nis_user }}"
|
||||||
|
# loop_control:
|
||||||
|
# label: '{{ item.name }}'
|
||||||
|
# tags:
|
||||||
|
# - nis-user
|
||||||
|
# - x11vnc
|
||||||
|
|
||||||
|
|
||||||
|
- name: (nis_user.yml) Check if file ~/.config/autostart/x11vnc.desktop exists
|
||||||
|
stat:
|
||||||
|
path: '{{ nis_base_home }}/{{ item.name }}/.config/autostart/x11vnc.desktop'
|
||||||
|
loop: "{{ nis_user }}"
|
||||||
|
loop_control:
|
||||||
|
label: '{{ item.name }}'
|
||||||
|
register: home_config_autostart_x11vnc
|
||||||
|
tags:
|
||||||
|
- nis-user
|
||||||
|
- x11vnc
|
||||||
|
|
||||||
|
- name: (nis_user.yml) Ensure file ~/.config/autostart/x11vnc.desktop exists
|
||||||
|
copy:
|
||||||
|
src: "{{ role_path + '/files/USER_HOME/.config/autostart/x11vnc.desktop' }}"
|
||||||
|
dest: '{{ nis_base_home }}/{{ item.item.name }}/.config/autostart/x11vnc.desktop'
|
||||||
|
owner: '{{ item.item.name }}'
|
||||||
|
group: '{{ item.item.name }}'
|
||||||
|
mode: 0600
|
||||||
|
loop: "{{ home_config_autostart_x11vnc.results }}"
|
||||||
|
loop_control:
|
||||||
|
label: '{{ item.item.name }}'
|
||||||
|
tags:
|
||||||
|
- nis-user
|
||||||
|
- x11vnc
|
||||||
|
|
||||||
|
#- name: (nis_user.yml) Ensure file ~/.config/autostart/x11vnc.desktop exists
|
||||||
|
# copy:
|
||||||
|
# src: "{{ role_path + '/files/USER_HOME/.config/autostart/x11vnc.desktop' }}"
|
||||||
|
# dest: '{{ nis_base_home }}/{{ item.name }}/.config/autostart/x11vnc.desktop'
|
||||||
|
# owner: '{{ item.name }}'
|
||||||
|
# group: '{{ item.name }}'
|
||||||
|
# mode: 0600
|
||||||
|
# loop: "{{ nis_user }}"
|
||||||
|
# loop_control:
|
||||||
|
# label: '{{ item.name }}'
|
||||||
|
# tags:
|
||||||
|
# - nis-user
|
||||||
|
# - x11vnc
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user