New playbook gen_bootstrap.yml.
This commit is contained in:
parent
2a85188062
commit
29d7aed870
8
gen_bootstrap.yml
Executable file
8
gen_bootstrap.yml
Executable file
@ -0,0 +1,8 @@
|
|||||||
|
---
|
||||||
|
- name: gen_bootstrap
|
||||||
|
hosts: localhost
|
||||||
|
gather_facts: false
|
||||||
|
vars_files: main.yml
|
||||||
|
tasks:
|
||||||
|
- name: test
|
||||||
|
shell: echo Hello
|
@ -228,13 +228,24 @@
|
|||||||
delegate_to: 172.17.0.1
|
delegate_to: 172.17.0.1
|
||||||
become: true
|
become: true
|
||||||
|
|
||||||
|
- name: Clone duplicity_playbooks repo
|
||||||
|
ansible.builtin.git:
|
||||||
|
repo: 'https://git.scimetis.net/yohan/duplicity_playbooks.git'
|
||||||
|
dest: "/home/{{ user }}/repository/duplicity_playbooks_temp"
|
||||||
|
clone: yes
|
||||||
|
version: dev
|
||||||
|
update: true
|
||||||
|
force: true
|
||||||
|
remote_user: "{{ user }}"
|
||||||
|
delegate_to: 172.17.0.1
|
||||||
|
|
||||||
- name: Start duplicity container
|
- name: Start duplicity container
|
||||||
community.docker.docker_container:
|
community.docker.docker_container:
|
||||||
name: duplicity
|
name: duplicity
|
||||||
image: "duplicity:{{ tag }}"
|
image: "duplicity:{{ tag }}"
|
||||||
entrypoint:
|
entrypoint:
|
||||||
- "ansible-playbook"
|
- "ansible-playbook"
|
||||||
- "gen_bootstrap.yml"
|
- "/root/duplicity_playbooks/gen_bootstrap.yml"
|
||||||
output_logs: true
|
output_logs: true
|
||||||
detach: false
|
detach: false
|
||||||
network_mode: host
|
network_mode: host
|
||||||
@ -247,6 +258,7 @@
|
|||||||
- /home/{{ user }}/repository/docker-duplicity-stack/mail_credentials.json:/root/mail_credentials.json:z
|
- /home/{{ user }}/repository/docker-duplicity-stack/mail_credentials.json:/root/mail_credentials.json:z
|
||||||
- /home/{{ user }}/repository/docker-duplicity-stack/id_rsa:/root/.ssh/id_rsa:Z
|
- /home/{{ user }}/repository/docker-duplicity-stack/id_rsa:/root/.ssh/id_rsa:Z
|
||||||
- /home/{{ user }}/repository/docker-duplicity-stack/config:/root/.ssh/config:Z
|
- /home/{{ user }}/repository/docker-duplicity-stack/config:/root/.ssh/config:Z
|
||||||
|
- /home/{{ user }}/repository/duplicity_playbooks_temp:/root/duplicity_playbooks:Z
|
||||||
env:
|
env:
|
||||||
OS_AUTH_URL: "{{ OS_AUTH_URL }}"
|
OS_AUTH_URL: "{{ OS_AUTH_URL }}"
|
||||||
OS_IDENTITY_API_VERSION: "{{ OS_IDENTITY_API_VERSION }}"
|
OS_IDENTITY_API_VERSION: "{{ OS_IDENTITY_API_VERSION }}"
|
||||||
|
Loading…
Reference in New Issue
Block a user