mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-05-16 13:56:03 +08:00
55 lines
1.4 KiB
YAML
55 lines
1.4 KiB
YAML
- name: check/create instance
|
|
hosts: jenkins-master
|
|
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:
|
|
- include: "{{ tasks }}/persistent_cloud.yml"
|
|
|
|
- name: setup all the things
|
|
hosts: jenkins-master
|
|
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:
|
|
- include: "{{ tasks }}/cloud_setup_basic.yml"
|
|
- name: set hostname (required by some services, at least postfix need it)
|
|
shell: "hostname {{inventory_hostname}}"
|
|
- include: "{{ tasks }}/yumrepos.yml"
|
|
|
|
- name: provision instance
|
|
hosts: jenkins-master
|
|
vars_files:
|
|
- /srv/web/infra/ansible/vars/global.yml
|
|
- "/srv/private/ansible/vars.yml"
|
|
- /srv/web/infra/ansible/vars/{{ ansible_distribution }}.yml
|
|
|
|
roles:
|
|
- base
|
|
- jenkins/master
|
|
#- fedmsg/base
|
|
- apache
|
|
- role: httpd/website
|
|
name: jenkins.fedorainfracloud.org
|
|
ssl: false
|
|
- role: httpd/reverseproxy
|
|
website: jenkins.fedorainfracloud.org
|
|
destname: jenkins
|
|
proxyurl: http://localhost:8080
|
|
|
|
tasks:
|
|
- include: "{{ tasks }}/yumrepos.yml"
|
|
- include: "{{ tasks }}/motd.yml"
|
|
|
|
handlers:
|
|
- include: "{{ handlers }}/restart_services.yml"
|