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 f3df7db2 authored by freezed's avatar freezed :mountain:
Browse files

:rotating_light: Conform to linter yes -> true

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