mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-06-14 22:36:09 +08:00
In ansible 2.8 the - character isn't supposed to be valid in group names. While we could override this, might has well just bite the bullet and change it. So, just switch all group names to use _ instead of - Signed-off-by: Kevin Fenzi <kevin@scrye.com>
37 lines
1.0 KiB
YAML
37 lines
1.0 KiB
YAML
- name: check/create instances
|
|
hosts: twisted_buildbots
|
|
gather_facts: False
|
|
|
|
vars_files:
|
|
- /srv/web/infra/ansible/vars/global.yml
|
|
- /srv/private/ansible/vars.yml
|
|
- /srv/web/infra/ansible/vars/fedora-cloud.yml
|
|
- /srv/private/ansible/files/openstack/passwords.yml
|
|
|
|
tasks:
|
|
- import_tasks: "{{ tasks_path }}/persistent_cloud.yml"
|
|
|
|
- name: setup all the things
|
|
hosts: twisted_buildbots
|
|
gather_facts: True
|
|
vars_files:
|
|
- /srv/web/infra/ansible/vars/global.yml
|
|
- /srv/private/ansible/vars.yml
|
|
- /srv/private/ansible/files/openstack/passwords.yml
|
|
- /srv/web/infra/ansible/vars/{{ ansible_distribution }}.yml
|
|
|
|
pre_tasks:
|
|
- import_tasks: "{{ tasks_path }}/cloud_setup_basic.yml"
|
|
- name: set hostname (required by some services, at least postfix need it)
|
|
hostname: name="{{inventory_hostname}}"
|
|
|
|
tasks:
|
|
|
|
- name: add twisted key
|
|
authorized_key: user=root key="{{ item }}"
|
|
with_file:
|
|
- /srv/web/infra/ansible/files/twisted/ssh-pub-key
|
|
tags:
|
|
- config
|
|
- sshkeys
|