This commit is contained in:
parent
b5a97a735f
commit
cf4fc15f44
@ -6,14 +6,13 @@
|
|||||||
repo: "{{ user_config_repo }}" # required. git, SSH, or HTTP(S) protocol address of the git repository.
|
repo: "{{ user_config_repo }}" # required. git, SSH, or HTTP(S) protocol address of the git repository.
|
||||||
clone: yes # not required. If C(no), do not clone the repository if it does not exist locally
|
clone: yes # not required. If C(no), do not clone the repository if it does not exist locally
|
||||||
recursive: yes
|
recursive: yes
|
||||||
force: no
|
force: no
|
||||||
update: yes
|
update: yes
|
||||||
accept_hostkey: yes
|
accept_hostkey: yes
|
||||||
register: config_download
|
register: config_download
|
||||||
|
|
||||||
|
|
||||||
- debug:
|
- debug:
|
||||||
msg: "{{ config_download }}"
|
msg: "{{ config_download }}"
|
||||||
|
|
||||||
- name: pass user shell to zsh
|
- name: pass user shell to zsh
|
||||||
user:
|
user:
|
||||||
@ -23,7 +22,7 @@
|
|||||||
become: yes
|
become: yes
|
||||||
|
|
||||||
- name: test if user bash rc exist
|
- name: test if user bash rc exist
|
||||||
stat:
|
stat:
|
||||||
path: /home/{{user.name}}/.bashrc
|
path: /home/{{user.name}}/.bashrc
|
||||||
register: links
|
register: links
|
||||||
|
|
||||||
@ -33,7 +32,7 @@
|
|||||||
state: absent
|
state: absent
|
||||||
when: links.stat.islnk is defined and not links.stat.islnk
|
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:
|
||||||
chdir: /home/{{user.name}}/conf2
|
chdir: /home/{{user.name}}/conf2
|
||||||
|
Loading…
Reference in New Issue
Block a user