diff options
author | Matthieu Saulnier <fantom@fedoraproject.org> | 2018-12-24 16:30:32 +0100 |
---|---|---|
committer | Matthieu Saulnier <fantom@fedoraproject.org> | 2018-12-24 16:30:32 +0100 |
commit | a70091ad7372d17f0dfb58663a6ed4479ca40709 (patch) | |
tree | 7a454aaf21e45e036fa54ae46b0dc014986137f6 /roles/clients/tasks | |
parent | 6ed28366124713afb588ad96b7040fbe0841a32d (diff) | |
download | playbooks-ansible-a70091ad7372d17f0dfb58663a6ed4479ca40709.tar.gz playbooks-ansible-a70091ad7372d17f0dfb58663a6ed4479ca40709.tar.xz playbooks-ansible-a70091ad7372d17f0dfb58663a6ed4479ca40709.zip |
Update user and seboolean and firewalld modules syntax
Diffstat (limited to 'roles/clients/tasks')
-rw-r--r-- | roles/clients/tasks/fw.yml | 25 | ||||
-rw-r--r-- | roles/clients/tasks/nvidia.yml | 11 |
2 files changed, 19 insertions, 17 deletions
diff --git a/roles/clients/tasks/fw.yml b/roles/clients/tasks/fw.yml index 67a3276..4cc0b2b 100644 --- a/roles/clients/tasks/fw.yml +++ b/roles/clients/tasks/fw.yml @@ -1,26 +1,29 @@ - name: Fermeture des ports de services firewalld: - service: "{{ item[0] }}" - permanent: "{{ item[1] }}" + service: "{{ item }}" + permanent: yes + immediate: yes state: disabled - with_nested: - - [ 'dhcpv6-client', 'mdns', 'samba-client' ] - - [ 'true', 'false' ] + with_items: + - dhcpv6-client + - mdns + - samba-client when: ansible_distribution == "Fedora" - name: Fermeture du port SSH après reboot firewalld: service: ssh - permanent: true + permanent: yes state: disabled when: ansible_distribution == "Fedora" - name: Fermeture des plages de port firewalld: - port: "{{ item[0] }}" - permanent: "{{ item[1] }}" + port: "{{ item }}" + permanent: yes + immediate: yes state: disabled - with_nested: - - [ '1025-65535/tcp', '1025-65535/udp' ] - - [ 'true', 'false' ] + with_items: + - 1025-65535/tcp + - 1025-65535/udp when: ansible_distribution == "Fedora" diff --git a/roles/clients/tasks/nvidia.yml b/roles/clients/tasks/nvidia.yml index fa00752..5c02444 100644 --- a/roles/clients/tasks/nvidia.yml +++ b/roles/clients/tasks/nvidia.yml @@ -17,10 +17,9 @@ when: ansible_distribution == "Fedora" and ansible_distribution_version|int <= 26 - name: Désactivation de Wayland pour GDM - lineinfile: - dest: /etc/gdm/custom.conf - state: present - backrefs: yes - regexp: "^#WaylandEnable=false" - line: "WaylandEnable=false" + ini_file: + path: /etc/gdm/custom.conf + section: daemon + option: WaylandEnable + value: "false" when: ansible_distribution == "Fedora" and ansible_distribution_version|int <= 27 |