Install Spacewalk on CentOS 7 and add clients using ansible
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

33 lines
652 B

---
- hosts: spacewalk-server
sudo: yes
pre_tasks:
- hostname: name=spacewalk02
roles:
- spacewalk
- role: iptables
firewall_allowed_tcp_ports:
- 22
- 80
- 443
- 5222
- 5269
- hosts: spacewalk-server
sudo: yes
vars_prompt:
- name: "ready_to_go"
prompt: "Login to the Spacewalk and set up and admin account. Hit Enter when ready"
private: No
- name: "admin_password"
prompt: "Admin Password"
default: "test123"
private: yes
roles:
- role: spacewalk-customisations
spacewalk_admin_password: "{{admin_password}}"
- role: spacewalk-client