review inventory
This commit is contained in:
parent
f98c534526
commit
07af650388
@ -22,6 +22,17 @@
|
|||||||
state: present # not required. choices: absent;present. Whether the account should exist or not, taking action if the state is different from what is stated.
|
state: present # not required. choices: absent;present. Whether the account should exist or not, taking action if the state is different from what is stated.
|
||||||
become: yes
|
become: yes
|
||||||
|
|
||||||
|
- name: test if user bash rc exist
|
||||||
|
stat:
|
||||||
|
path: /home/{{user.name}}/.bashrc
|
||||||
|
register: links
|
||||||
|
|
||||||
|
- name: delete bashrc if needed
|
||||||
|
file:
|
||||||
|
path: "{{ links.stat.path }}"
|
||||||
|
state: absent
|
||||||
|
when: links.stat.islnk is defined and not links.stat.islnk
|
||||||
|
|
||||||
- name: apply stow config
|
- name: apply stow config
|
||||||
shell: stow *
|
shell: stow *
|
||||||
args:
|
args:
|
||||||
@ -33,4 +44,4 @@
|
|||||||
args:
|
args:
|
||||||
chdir: /home/{{user.name}}/conf2
|
chdir: /home/{{user.name}}/conf2
|
||||||
when: config_download.changed == true
|
when: config_download.changed == true
|
||||||
become: yes
|
become: yes
|
||||||
|
Loading…
Reference in New Issue
Block a user