open up ports for foreman
This commit is contained in:
parent
416aaa2951
commit
7cb80162a9
29
playbooks/foreman/open_ports_reset_user.yml
Normal file
29
playbooks/foreman/open_ports_reset_user.yml
Normal file
@ -0,0 +1,29 @@
|
||||
---
|
||||
- name: Open all ports and needed by foreman
|
||||
hosts: foremanAlma
|
||||
become: yes
|
||||
vars_files:
|
||||
- /home/mango/projects/homelab/vars/secrets.yml
|
||||
vars:
|
||||
username: root
|
||||
tasks:
|
||||
- name: permit traffic in default zone for https service
|
||||
ansible.posix.firewalld:
|
||||
service: "{{item}}"
|
||||
permanent: true
|
||||
state: enabled
|
||||
immediate: yes
|
||||
loop:
|
||||
- https
|
||||
- dns
|
||||
- dhcp
|
||||
- tftp
|
||||
- http
|
||||
- "vnc-server"
|
||||
- "postgresql"
|
||||
- "puppetmaster"
|
||||
|
||||
|
||||
- name: set admin user and password
|
||||
ansible.builtin.command:
|
||||
cmd: "foreman-rake permissions:reset username={{username}} password={{become_password}}"
|
Loading…
Reference in New Issue
Block a user