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