bashrc: fix the tasks syntax.

This commit is contained in:
Andrea Dell'Amico 2024-04-03 12:01:48 +02:00
parent e9f2898efb
commit 9497433a85
Signed by: adellam
GPG Key ID: 147ABE6CEB9E20FF
1 changed files with 6 additions and 6 deletions

View File

@ -12,9 +12,9 @@
marker_end: 'bashrc_customizations_end'
marker: "# {mark} Customization to bashrc installed via ansible"
block: "{{ item }}"
state: present
loop:
- "{{ lookup('ansible.builtin.file', '{{ bash_custom_skel_bashrc_file }}') }}"
state: present
- name: custom_bashrc | Remove the skel bashrc customizations
when: not bash_customize_skel_bashrc
@ -29,9 +29,9 @@
marker_end: 'bashrc_customizations_end'
marker: "# {mark} Customization to bashrc installed via ansible"
block: "{{ item }}"
state: absent
loop:
- "{{ lookup('ansible.builtin.file', '{{ bash_custom_skel_bashrc_file }}') }}"
state: absent
- name: custom_bashrc | Manage the root user bashrc customization
when: bash_customize_root_bashrc
@ -46,9 +46,9 @@
marker_end: 'bashrc_customizations_end'
marker: "# {mark} Customization to bashrc installed via ansible"
block: "{{ item }}"
state: present
loop:
- "{{ lookup('ansible.builtin.file', '{{ bash_custom_root_bashrc_file }}') }}"
state: present
- name: custom_bashrc | Remove the root user bashrc customization
when: not bash_customize_root_bashrc
@ -63,9 +63,9 @@
marker_end: 'bashrc_customizations_end'
marker: "# {mark} Customization to bashrc installed via ansible"
block: "{{ item }}"
state: absent
loop:
- "{{ lookup('ansible.builtin.file', '{{ bash_custom_root_bashrc_file }}') }}"
state: absent
- name: custom_bashrc | Manage the root user bashrc history settings
when: bash_customize_root_history_settings
@ -87,9 +87,9 @@
marker_end: 'history_customizations_end'
marker: "# {mark} Customization to the bash prompt installed via ansible"
block: "{{ item }}"
state: present
loop:
- "{{ lookup('ansible.builtin.file', '{{ bash_custom_history_settings_file }}') }}"
state: present
- name: custom_bashrc | Remove the root user bashrc history settings
when: not bash_customize_root_history_settings
@ -104,9 +104,9 @@
marker_end: 'history_customizations_end'
marker: "# {mark} Customization to the bash prompt installed via ansible"
block: "{{ item }}"
state: absent
loop:
- "{{ lookup('ansible.builtin.file', '{{ bash_custom_history_settings_file }}') }}"
state: absent
- name: custom_bashrc | Remove the bash history logs directory
ansible.builtin.file:
path: "{{ bash_custom_history_directory }}"