Update 'ansible/ubuntu/setup-pb.yml'
This commit is contained in:
parent
727a8f13ee
commit
f7991c88ac
@ -144,10 +144,11 @@
|
||||
|
||||
- traceroute
|
||||
|
||||
- pip3
|
||||
- python3-pip
|
||||
|
||||
state: latest
|
||||
- git
|
||||
|
||||
# state: latest
|
||||
|
||||
|
||||
- name: Create a local systemd-resolved configuration directory.
|
||||
@ -299,6 +300,7 @@
|
||||
name: "{{ user }}"
|
||||
|
||||
password: "{{ user_passwd | password_hash('sha512') }}"
|
||||
# password: ELqZ9L70SSOTjnE0Jq
|
||||
|
||||
state: present
|
||||
|
||||
@ -308,7 +310,28 @@
|
||||
|
||||
shell: /bin/bash
|
||||
|
||||
- name: Install requests python package
|
||||
ansible.builtin.pip:
|
||||
name: requests
|
||||
|
||||
- name: Install gitpython python package
|
||||
ansible.builtin.pip:
|
||||
name: gitpython
|
||||
|
||||
- name: Run clone all repos
|
||||
ansible.builtin.script: ./clone_all_repos.py
|
||||
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/
|
||||
|
||||
- name: Change back ownership to user_this
|
||||
ansible.builtin.shell:
|
||||
cmd: chown -R user_this:user_this fossilfranv
|
||||
chdir: /home/user_this/
|
||||
|
||||
- name: Ensure ansible_sudo_passwd matches the [new] user password
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user