Update 'ansible/ubuntu/setup-pb.yml'
This commit is contained in:
parent
f7991c88ac
commit
0589fe1dfd
@ -148,7 +148,7 @@
|
||||
|
||||
- git
|
||||
|
||||
# state: latest
|
||||
state: latest
|
||||
|
||||
|
||||
- name: Create a local systemd-resolved configuration directory.
|
||||
@ -318,15 +318,25 @@
|
||||
ansible.builtin.pip:
|
||||
name: gitpython
|
||||
|
||||
|
||||
- name: Check if repos already cloned
|
||||
stat: path="/home/user_this/fossilfranv"
|
||||
# path:
|
||||
register: p
|
||||
|
||||
- name: Run clone all repos
|
||||
ansible.builtin.script: ./clone_all_repos.py
|
||||
when: not p.stat.exists
|
||||
args:
|
||||
executable: python3
|
||||
|
||||
|
||||
- name: Change site name in all repos
|
||||
ansible.builtin.shell:
|
||||
cmd: grep -rli 'franv.site' * | xargs -i@ sed -i 's/franv.site/new.site/g' @
|
||||
chdir: /home/user_this/
|
||||
when: not p.stat.exists
|
||||
|
||||
|
||||
- name: Change back ownership to user_this
|
||||
ansible.builtin.shell:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user