summaryrefslogtreecommitdiffstats
path: root/playbooks/groups/fas3.yml
blob: 6bef9f552d4cca98444d231fec9ccebe41712544 (plain)
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
30
31
32
33
34
35
36
37
38
# create a new fas server

- include: "/srv/web/infra/ansible/playbooks/include/virt-create.yml myhosts=fas3-stg"

- name: make the box be real
  hosts: fas3-stg
  user: root
  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
  - hosts
  - rkhunter
  #- nagios/client
  - fas_client
  - collectd/base
  - rsyncd
  - memcached
  - mod_wsgi
  - fas3_server
  - fedmsg/base
  - sudo
  #- yubikey
  #- totpcgi
  #- { role: openvpn/client, when: env != "staging" }

  tasks:
  - include: "{{ tasks_path }}/yumrepos.yml"
  - include: "{{ tasks_path }}/2fa_client.yml"
  - include: "{{ tasks_path }}/motd.yml"

  handlers:
  - include: "{{ handlers_path }}/restart_services.yml"