Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
- hosts: infra
vars:
- foreman_db_type: mysql #can be sqlite/mysql/postgresql
tasks:
- name: Installing other repositories
yum: pkg={{ item }} state=installed
with_items:
- http://fedora.cu.be/epel//6/x86_64/epel-release-6-8.noarch.rpm
- http://yum.theforeman.org/releases/1.4/el6/x86_64/foreman-release.rpm
- name: Installing puppetmasterd
yum: pkg={{ item }} state=installed
with_items:
- puppet-server
- git
- centos-release-SCL
- name: Installing foreman-installer cli
yum: pkg=foreman-installer state=installed
- name: Installing SCL utils
yum: pkg=scl-utils state=installed
- name: Setting up foreman with foreman-installer
shell: /usr/sbin/foreman-installer creates=/usr/sbin/foreman
- name: Fetching additional Foreman plugins
yum: pkg={{ item }} state=installed
with_items:
- ruby193-rubygem-foreman_default_hostgroup
notify:
- restart_foreman
handlers:
- name: restart_foreman
service: name=foreman state=restarted
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.