mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-05-02 14:30:45 +08:00
39 lines
967 B
YAML
39 lines
967 B
YAML
#- name: clean known hosts
|
|
# hosts: dopr-stg
|
|
# remote_user: fedora
|
|
# sudo: True
|
|
# gather_facts: False
|
|
#
|
|
# tasks:
|
|
# - name: clean out old known_hosts for dopr-dev
|
|
# local_action: known_hosts path={{item}} host=dopr-dev.cloud.fedoraproject.org state=absent
|
|
# ignore_errors: True
|
|
# with_items:
|
|
# - /root/.ssh/known_hosts
|
|
# - /etc/ssh/ssh_known_hosts
|
|
# - name: clean out old known_hosts for dopr-dev ip
|
|
# local_action: known_hosts path={{item}} host=209.132.184.42 state=absent
|
|
# ignore_errors: True
|
|
# with_items:
|
|
# - /root/.ssh/known_hosts
|
|
# - /etc/ssh/ssh_known_hosts
|
|
|
|
- name: provision dopr dev instance
|
|
hosts: dopr-stg
|
|
remote_user: fedora
|
|
sudo: True
|
|
gather_facts: True
|
|
|
|
vars_files:
|
|
- /srv/web/infra/ansible/vars/global.yml
|
|
- "/srv/private/ansible/vars.yml"
|
|
- /srv/web/infra/ansible/vars/{{ ansible_distribution }}.yml
|
|
|
|
|
|
roles:
|
|
- base
|
|
- dopr
|
|
|
|
handlers:
|
|
- include: "{{ handlers }}/restart_services.yml"
|