forked from imain/container-check
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.yml
29 lines (26 loc) · 905 Bytes
/
main.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
---
- name: add hosts to host list
hosts: localhost
gather_facts: no
tasks:
- add_host:
name: "overcloud-node"
groups: "overcloud_nodes"
ansible_ssh_user: "{{ install.host.username }}"
ansible_ssh_host: "{{ install.host.ip }}"
ansible_ssh_private_key_file: "{{ install.host.key_file }}"
when: (install.host is defined) and (install.host.ip is defined) and (install.host.username is defined) and (install.host.key_file is defined)
- name: Copy docker-images.yaml from undercloud
hosts: undercloud
become: yes
tasks:
- fetch:
src: '/home/stack/virt/docker-images.yaml'
dest: /tmp/docker-images.yaml
mode: 0755
flat: yes
- name: Copy patched rpms from the undercloud node and run the update
hosts: overcloud_nodes
become: yes
roles:
- { role: overclould_patching_containers }