try delegate_to for a role
Signed-off-by: Adam Miller <admiller@redhat.com>
This commit is contained in:
parent
c6980ee08f
commit
664f386ff3
1 changed files with 5 additions and 15 deletions
|
@ -92,26 +92,16 @@
|
||||||
when: env == "production"
|
when: env == "production"
|
||||||
}
|
}
|
||||||
|
|
||||||
- name: Setup compose-x86-01 push docker images to registry
|
# Setup compose-x86-01 push docker images to registry
|
||||||
hosts: compose-x86-01.phx2.fedoraproject.org
|
|
||||||
user: root
|
|
||||||
gather_facts: True
|
|
||||||
tags:
|
|
||||||
- releng-compose
|
|
||||||
|
|
||||||
vars_files:
|
|
||||||
- /srv/web/infra/ansible/vars/global.yml
|
|
||||||
- "/srv/private/ansible/vars.yml"
|
|
||||||
- /srv/web/infra/ansible/vars/{{ ansible_distribution }}.yml
|
|
||||||
|
|
||||||
roles:
|
|
||||||
- {
|
- {
|
||||||
role: push-docker,
|
role: push-docker,
|
||||||
docker_cert_dir: "/etc/docker/certs.d/registry.stg.fedoraproject.org",
|
docker_cert_dir: "/etc/docker/certs.d/registry.stg.fedoraproject.org",
|
||||||
when: env == "staging"
|
when: env == "staging",
|
||||||
|
delegate_to: compose-x86-01.phx2.fedoraproject.org
|
||||||
}
|
}
|
||||||
- {
|
- {
|
||||||
role: push-docker,
|
role: push-docker,
|
||||||
docker_cert_dir: "/etc/docker/certs.d/registry.fedoraproject.org",
|
docker_cert_dir: "/etc/docker/certs.d/registry.fedoraproject.org",
|
||||||
when: env == "production"
|
when: env == "production",
|
||||||
|
delegate_to: compose-x86-01.phx2.fedoraproject.org
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue