2 - name: Set up the host machine for autocluster
7 - name: install latest vagrant rpm
9 name: https://releases.hashicorp.com/vagrant/2.2.5/vagrant_2.2.5_x86_64.rpm
12 - name: install vagrant plugins
13 command: vagrant plugin install {{item}}
18 - name: dependencies for virt_pool module
25 - name: ensure autocluster storage pool exists
32 <name>autocluster</name>
34 <path>/virtual/autocluster</path>
38 # It seems that you can't force the pool to be active above when creating it!
39 - name: ensure autocluster storage pool is active
44 - name: install NFS server
49 - name: enable/start NFS server
58 # This was tough to figure out...
59 - name: allow NFS through firewall
71 # Need to add a restart or "exportfs -r"
72 - name: export /home via NFS
74 # This can be parameterised later when there are host onfig variables
76 dest: /etc/exports.d/autocluster-home.exports
78 - name: ensure an NTP server is installed
83 - name: allow NTP through firewall
91 - name: enable/start NTP server
97 - name: ensure an HTTP server is installed
102 - name: enable/start HTTP server
108 - name: allow HTTP through firewall
116 - name: ensure HTTP link for mediasets directory
119 path: /var/www/html/mediasets
123 - name: ensure semanage command is available
125 name: policycoreutils-python
128 - name: selinux setup for /home/mediasets
131 - chcon -R -t httpd_user_content_t /home/mediasets
132 - semanage boolean -m -1 httpd_unified
133 - semanage boolean -m -1 httpd_enable_homedirs
135 - name: install Python dependencies for Ansible Jinja templating