ansible/playbooks/groups/wiki.yml
iamyaash b3d6a90b9a motd generic template added
migrated notes from infra/hosts

motd changes; excluding CSI infos

removed csi_* vars from group_vars; converted csi_purpose & csi_relationship into notes

fixed merge conflicts

minor changes; var

updating YAMLs & playbooks

udpated YAMLs & playbooks again

updated correctly; buildhw.yml

fixing merge conflicts

dest added in motd.yml
2025-01-28 01:10:14 +00:00

46 lines
1.3 KiB
YAML

# create a new wiki server
#
# These servers run mediawiki for the main fedora wiki instance.
#
---
- import_playbook: "/srv/web/infra/ansible/playbooks/include/virt-create.yml"
vars:
myhosts: "wiki:wiki_stg"
- name: Make the box be real
hosts: wiki:wiki_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
pre_tasks:
- import_tasks: "{{ tasks_path }}/yumrepos.yml"
roles:
- base
- rkhunter
- nagios_client
- zabbix/zabbix_agent
- hosts
- { role: openvpn/client,
when: env != "staging" }
- ipa/client
- collectd/base
- apache
# Set up for fedora-messaging
- role: rabbit/user
user_name: "mediawiki{{ env_suffix }}"
user_sent_topics: ^org\.fedoraproject\.{{ env_short }}\.(wiki|logger)\..*
when: inventory_hostname.startswith('wiki01')
- { role: nfs/client, when: env == "staging", mnt_dir: '/mnt/web/attachments', nfs_src_dir: 'fedora_app_staging/app/attachments', mount_stg: true }
- { role: nfs/client, when: env != "staging", mnt_dir: '/mnt/web/attachments', nfs_src_dir: 'fedora_app/app/attachments' }
- mediawiki
- sudo
handlers:
- import_tasks: "{{ handlers_path }}/restart_services.yml"