bashrc: fix the tasks syntax.
This commit is contained in:
parent
e9f2898efb
commit
9497433a85
|
@ -12,9 +12,9 @@
|
||||||
marker_end: 'bashrc_customizations_end'
|
marker_end: 'bashrc_customizations_end'
|
||||||
marker: "# {mark} Customization to bashrc installed via ansible"
|
marker: "# {mark} Customization to bashrc installed via ansible"
|
||||||
block: "{{ item }}"
|
block: "{{ item }}"
|
||||||
|
state: present
|
||||||
loop:
|
loop:
|
||||||
- "{{ lookup('ansible.builtin.file', '{{ bash_custom_skel_bashrc_file }}') }}"
|
- "{{ lookup('ansible.builtin.file', '{{ bash_custom_skel_bashrc_file }}') }}"
|
||||||
state: present
|
|
||||||
|
|
||||||
- name: custom_bashrc | Remove the skel bashrc customizations
|
- name: custom_bashrc | Remove the skel bashrc customizations
|
||||||
when: not bash_customize_skel_bashrc
|
when: not bash_customize_skel_bashrc
|
||||||
|
@ -29,9 +29,9 @@
|
||||||
marker_end: 'bashrc_customizations_end'
|
marker_end: 'bashrc_customizations_end'
|
||||||
marker: "# {mark} Customization to bashrc installed via ansible"
|
marker: "# {mark} Customization to bashrc installed via ansible"
|
||||||
block: "{{ item }}"
|
block: "{{ item }}"
|
||||||
|
state: absent
|
||||||
loop:
|
loop:
|
||||||
- "{{ lookup('ansible.builtin.file', '{{ bash_custom_skel_bashrc_file }}') }}"
|
- "{{ lookup('ansible.builtin.file', '{{ bash_custom_skel_bashrc_file }}') }}"
|
||||||
state: absent
|
|
||||||
|
|
||||||
- name: custom_bashrc | Manage the root user bashrc customization
|
- name: custom_bashrc | Manage the root user bashrc customization
|
||||||
when: bash_customize_root_bashrc
|
when: bash_customize_root_bashrc
|
||||||
|
@ -46,9 +46,9 @@
|
||||||
marker_end: 'bashrc_customizations_end'
|
marker_end: 'bashrc_customizations_end'
|
||||||
marker: "# {mark} Customization to bashrc installed via ansible"
|
marker: "# {mark} Customization to bashrc installed via ansible"
|
||||||
block: "{{ item }}"
|
block: "{{ item }}"
|
||||||
|
state: present
|
||||||
loop:
|
loop:
|
||||||
- "{{ lookup('ansible.builtin.file', '{{ bash_custom_root_bashrc_file }}') }}"
|
- "{{ lookup('ansible.builtin.file', '{{ bash_custom_root_bashrc_file }}') }}"
|
||||||
state: present
|
|
||||||
|
|
||||||
- name: custom_bashrc | Remove the root user bashrc customization
|
- name: custom_bashrc | Remove the root user bashrc customization
|
||||||
when: not bash_customize_root_bashrc
|
when: not bash_customize_root_bashrc
|
||||||
|
@ -63,9 +63,9 @@
|
||||||
marker_end: 'bashrc_customizations_end'
|
marker_end: 'bashrc_customizations_end'
|
||||||
marker: "# {mark} Customization to bashrc installed via ansible"
|
marker: "# {mark} Customization to bashrc installed via ansible"
|
||||||
block: "{{ item }}"
|
block: "{{ item }}"
|
||||||
|
state: absent
|
||||||
loop:
|
loop:
|
||||||
- "{{ lookup('ansible.builtin.file', '{{ bash_custom_root_bashrc_file }}') }}"
|
- "{{ lookup('ansible.builtin.file', '{{ bash_custom_root_bashrc_file }}') }}"
|
||||||
state: absent
|
|
||||||
|
|
||||||
- name: custom_bashrc | Manage the root user bashrc history settings
|
- name: custom_bashrc | Manage the root user bashrc history settings
|
||||||
when: bash_customize_root_history_settings
|
when: bash_customize_root_history_settings
|
||||||
|
@ -87,9 +87,9 @@
|
||||||
marker_end: 'history_customizations_end'
|
marker_end: 'history_customizations_end'
|
||||||
marker: "# {mark} Customization to the bash prompt installed via ansible"
|
marker: "# {mark} Customization to the bash prompt installed via ansible"
|
||||||
block: "{{ item }}"
|
block: "{{ item }}"
|
||||||
|
state: present
|
||||||
loop:
|
loop:
|
||||||
- "{{ lookup('ansible.builtin.file', '{{ bash_custom_history_settings_file }}') }}"
|
- "{{ lookup('ansible.builtin.file', '{{ bash_custom_history_settings_file }}') }}"
|
||||||
state: present
|
|
||||||
|
|
||||||
- name: custom_bashrc | Remove the root user bashrc history settings
|
- name: custom_bashrc | Remove the root user bashrc history settings
|
||||||
when: not bash_customize_root_history_settings
|
when: not bash_customize_root_history_settings
|
||||||
|
@ -104,9 +104,9 @@
|
||||||
marker_end: 'history_customizations_end'
|
marker_end: 'history_customizations_end'
|
||||||
marker: "# {mark} Customization to the bash prompt installed via ansible"
|
marker: "# {mark} Customization to the bash prompt installed via ansible"
|
||||||
block: "{{ item }}"
|
block: "{{ item }}"
|
||||||
|
state: absent
|
||||||
loop:
|
loop:
|
||||||
- "{{ lookup('ansible.builtin.file', '{{ bash_custom_history_settings_file }}') }}"
|
- "{{ lookup('ansible.builtin.file', '{{ bash_custom_history_settings_file }}') }}"
|
||||||
state: absent
|
|
||||||
- name: custom_bashrc | Remove the bash history logs directory
|
- name: custom_bashrc | Remove the bash history logs directory
|
||||||
ansible.builtin.file:
|
ansible.builtin.file:
|
||||||
path: "{{ bash_custom_history_directory }}"
|
path: "{{ bash_custom_history_directory }}"
|
||||||
|
|
Loading…
Reference in New Issue