From 0589fe1dfd2cc63f30adef3aa826fc478ba96e6e Mon Sep 17 00:00:00 2001 From: fossilfranv Date: Fri, 28 Apr 2023 10:35:35 -0700 Subject: [PATCH] Update 'ansible/ubuntu/setup-pb.yml' --- ansible/ubuntu/setup-pb.yml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/ansible/ubuntu/setup-pb.yml b/ansible/ubuntu/setup-pb.yml index 2f8a323..89502eb 100644 --- a/ansible/ubuntu/setup-pb.yml +++ b/ansible/ubuntu/setup-pb.yml @@ -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: