refactor: standardize tasks’ name

This commit is contained in:
VC
2024-07-05 11:53:35 +02:00
parent 788dfae081
commit 85f0f91887
36 changed files with 114 additions and 138 deletions

View File

@@ -60,7 +60,7 @@
changed_when: true
when: ansible_facts['env']['LANG'] != 'fr_FR.UTF-8'
- name: Copy bashrc config file
- name: Put bashrc configuration file
ansible.builtin.copy:
src: files/dotbashrc
dest: /root/.bashrc
@@ -68,7 +68,7 @@
owner: root
group: root
- name: Copy vimrc config file
- name: Put vimrc configuration file
ansible.builtin.copy:
src: files/vim/
dest: /root/.vim
@@ -76,9 +76,9 @@
owner: root
group: root
- name: SSH configuration
- name: Config ssh
block:
- name: Put SSH configuration file
- name: Put ssh configuration file
ansible.builtin.template:
src: sshd_config.j2
dest: /etc/ssh/sshd_config
@@ -86,19 +86,19 @@
notify:
- Restart sshd
- name: SSH key home
- name: Put ssh key home
ansible.posix.authorized_key:
user: root
state: present
key: "{{ lookup('file', 'ssh/home.id_rsa.pub') }}"
- name: SSH key work
- name: Put ssh key work
ansible.posix.authorized_key:
user: root
state: present
key: "{{ lookup('file', 'ssh/work.id_rsa.pub') }}"
- name: SSH key stef
- name: Put ssh key stef
ansible.posix.authorized_key:
user: root
state: present
@@ -106,7 +106,7 @@
path: "~/.ssh/instance_keys"
when: inventory_hostname in groups['fedinupesservers']
- name: Set cron-apt configuration file
- name: Put cron-apt configuration file
ansible.builtin.copy:
src: files/5-install
dest: /etc/cron-apt/action.d/5-install