Pour tout problème contactez-nous par mail : support@froggit.fr | La FAQ :grey_question: | Rejoignez-nous sur le Chat :speech_balloon:

Skip to content
Snippets Groups Projects
Commit ed99bf8f authored by freezed's avatar freezed :mountain:
Browse files

:rotating_light: Conform to linter yes -> true

parent cd787de1
No related branches found
No related tags found
No related merge requests found
...@@ -27,7 +27,7 @@ ...@@ -27,7 +27,7 @@
- name: APT | install base & os packages - name: APT | install base & os packages
ansible.builtin.apt: ansible.builtin.apt:
cache_valid_time: 3600 cache_valid_time: 3600
force_apt_get: yes force_apt_get: true
pkg: "{{ lookup('flattened', base_pkg, os_pkg) }}" pkg: "{{ lookup('flattened', base_pkg, os_pkg) }}"
state: present state: present
update_cache: true update_cache: true
...@@ -56,7 +56,7 @@ ...@@ -56,7 +56,7 @@
when: inventory_hostname in groups.station when: inventory_hostname in groups.station
ansible.builtin.apt: ansible.builtin.apt:
cache_valid_time: 3600 cache_valid_time: 3600
force_apt_get: yes force_apt_get: true
pkg: "{{ lookup('flattened', station_pkg, station_os_pkg, station_wm_pkg) }}" pkg: "{{ lookup('flattened', station_pkg, station_os_pkg, station_wm_pkg) }}"
state: present state: present
update_cache: true update_cache: true
...@@ -65,7 +65,7 @@ ...@@ -65,7 +65,7 @@
when: inventory_hostname in groups.workstat when: inventory_hostname in groups.workstat
ansible.builtin.apt: ansible.builtin.apt:
cache_valid_time: 3600 cache_valid_time: 3600
force_apt_get: yes force_apt_get: true
pkg: "{{ lookup('flattened', workstat_pkg, workstat_os_pkg, workstat_wm_pkg) }}" pkg: "{{ lookup('flattened', workstat_pkg, workstat_os_pkg, workstat_wm_pkg) }}"
state: present state: present
update_cache: true update_cache: true
...@@ -94,14 +94,14 @@ ...@@ -94,14 +94,14 @@
- name: APT | upgrade all packages to the latest version - name: APT | upgrade all packages to the latest version
ansible.builtin.apt: ansible.builtin.apt:
force_apt_get: yes force_apt_get: true
upgrade: safe upgrade: safe
- name: APT | remove useless packages from the cache - name: APT | remove useless packages from the cache
ansible.builtin.apt: ansible.builtin.apt:
force_apt_get: yes force_apt_get: true
autoclean: yes autoclean: true
autoremove: yes autoremove: true
- name: APT | check for restarts - name: APT | check for restarts
ansible.builtin.stat: path={{ item }} ansible.builtin.stat: path={{ item }}
...@@ -109,7 +109,7 @@ ...@@ -109,7 +109,7 @@
loop: loop:
- /var/run/firefox-restart-required - /var/run/firefox-restart-required
- /var/run/reboot-required - /var/run/reboot-required
no_log: yes no_log: true
- name: APT | restart message - name: APT | restart message
ansible.builtin.debug: ansible.builtin.debug:
......
--- ---
# When 1st user is root, set it as "remote_user" and remove all "become: yes" # When 1st user is root, set it as "remote_user" and remove all "become: true"
- hosts: "{{ host_list }}" - hosts: "{{ host_list }}"
become_method: sudo become_method: sudo
remote_user: "{{ my_user }}" remote_user: "{{ my_user }}"
...@@ -7,19 +7,19 @@ ...@@ -7,19 +7,19 @@
tasks: tasks:
- name: SUDO | Group sudo presence - name: SUDO | Group sudo presence
become: yes become: true
ansible.builtin.group: ansible.builtin.group:
name: sudo name: sudo
state: present state: present
- name: SUDO | Group wheel absence - name: SUDO | Group wheel absence
become: yes become: true
ansible.builtin.group: ansible.builtin.group:
name: wheel name: wheel
state: absent state: absent
- name: SUDO | User presence (with groups) - name: SUDO | User presence (with groups)
become: yes become: true
ansible.builtin.user: ansible.builtin.user:
name: "{{ my_user }}" name: "{{ my_user }}"
state: present state: present
...@@ -27,11 +27,11 @@ ...@@ -27,11 +27,11 @@
append: true append: true
- name: SUDO | Reset ansible connection to apply group update - name: SUDO | Reset ansible connection to apply group update
become: yes become: true
meta: reset_connection meta: reset_connection
- name: "SSH | Local public key is present for {{ my_user }}" - name: "SSH | Local public key is present for {{ my_user }}"
become: yes become: true
ansible.builtin.authorized_key: ansible.builtin.authorized_key:
comment: "Managed by Ansible" comment: "Managed by Ansible"
key: https://gitlab.com/free_zed.keys key: https://gitlab.com/free_zed.keys
...@@ -39,13 +39,13 @@ ...@@ -39,13 +39,13 @@
user: "{{ my_user }}" user: "{{ my_user }}"
- name: SSH | Disallow SSH password authentication for root - name: SSH | Disallow SSH password authentication for root
become: yes become: true
copy: copy:
src: files/sshd_config src: files/sshd_config
dest: /etc/ssh/sshd_config dest: /etc/ssh/sshd_config
- name: "SSH | Local public key is present for root" - name: "SSH | Local public key is present for root"
become: yes become: true
ansible.builtin.authorized_key: ansible.builtin.authorized_key:
comment: "Managed by Ansible" comment: "Managed by Ansible"
key: https://gitlab.com/free_zed.keys key: https://gitlab.com/free_zed.keys
...@@ -53,7 +53,7 @@ ...@@ -53,7 +53,7 @@
user: root user: root
- name: SUDO | Remove no password directive - name: SUDO | Remove no password directive
become: yes become: true
ansible.builtin.lineinfile: ansible.builtin.lineinfile:
path: /etc/sudoers path: /etc/sudoers
state: absent state: absent
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment