2 - name: Set up the host machine for autocluster
7 - name: dependencies for Vagrant libvirt plugin
12 - name: install latest vagrant rpm
14 name: https://releases.hashicorp.com/vagrant/2.2.5/vagrant_2.2.5_x86_64.rpm
17 - name: install vagrant plugins
18 command: vagrant plugin install {{item}}
23 - name: dependencies for virt_pool module
30 - name: ensure /virtual/autocluster exists
32 path: /virtual/autocluster
35 - name: ensure autocluster storage pool exists
42 <name>autocluster</name>
44 <path>/virtual/autocluster</path>
48 # It seems that you can't force the pool to be active above when creating it!
49 - name: ensure autocluster storage pool is active
54 - name: install NFS server
59 - name: enable/start NFS server
68 # This was tough to figure out...
69 - name: allow NFS through firewall
81 # Need to add a restart or "exportfs -r"
82 - name: export /home via NFS
84 # This can be parameterised later when there are host onfig variables
86 dest: /etc/exports.d/autocluster-home.exports
90 - name: ensure an NTP server is installed
95 - name: allow NTP through firewall
103 - name: enable/start NTP server
109 - name: ensure an HTTP server is installed
114 - name: enable/start HTTP server
120 - name: allow HTTP through firewall
128 - name: ensure /home/mediasets/ directory exists
130 path: /home/mediasets
133 - name: ensure HTTP link for mediasets directory
136 path: /var/www/html/mediasets
140 - name: ensure semanage command is available
142 name: policycoreutils-python
145 - name: selinux setup for /home/mediasets
148 - chcon -R -t httpd_user_content_t /home/mediasets
149 - semanage boolean -m -1 httpd_unified
150 - semanage boolean -m -1 httpd_enable_homedirs
152 - name: install Python dependencies for Ansible Jinja templating
158 - name: reload NFS exports