|
@ -21,14 +21,6 @@ |
|
|
- include: lxc_nodes.yml |
|
|
- include: lxc_nodes.yml |
|
|
when: inventory_hostname in groups['manager'] |
|
|
when: inventory_hostname in groups['manager'] |
|
|
|
|
|
|
|
|
- name: container key is up-to-date locally |
|
|
|
|
|
shell: ssh-keyscan {{ workers }} >> ~/.ssh/known_hosts |
|
|
|
|
|
when: inventory_hostname in groups['manager'] |
|
|
|
|
|
|
|
|
|
|
|
- name: Install python on LXC container |
|
|
|
|
|
raw: which python || (apt-get -y update && apt-get install -y python) |
|
|
|
|
|
when: inventory_hostname in groups['workers'] |
|
|
|
|
|
|
|
|
|
|
|
- include: prepare_host.yml |
|
|
- include: prepare_host.yml |
|
|
when: inventory_hostname in groups['workers'] |
|
|
when: inventory_hostname in groups['workers'] |
|
|
|
|
|
|
|
|