bashrc: fix the tasks syntax.
This commit is contained in:
parent
e9f2898efb
commit
9497433a85
tasks
|
@ -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 }}"
|
||||
|
|
Loading…
Reference in New Issue