mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-02-02 12:49:00 +08:00
noc-cc01 is no more
Remove it from main and remove it's playbook. It was already removed from anisible. Signed-off-by: Kevin Fenzi <kevin@scrye.com>
This commit is contained in:
6
main.yml
6
main.yml
@@ -62,9 +62,3 @@
|
||||
- import_playbook: /srv/web/infra/ansible/playbooks/groups/virthost.yml
|
||||
- import_playbook: /srv/web/infra/ansible/playbooks/groups/wiki.yml
|
||||
- import_playbook: /srv/web/infra/ansible/playbooks/groups/zabbix.yml
|
||||
|
||||
#
|
||||
# host playbooks
|
||||
#
|
||||
|
||||
- import_playbook: /srv/web/infra/ansible/playbooks/hosts/noc-cc01.rdu-cc.fedoraproject.org.yml
|
||||
|
||||
@@ -1,70 +0,0 @@
|
||||
# This is a basic playbook
|
||||
|
||||
---
|
||||
- import_playbook: "/srv/web/infra/ansible/playbooks/include/virt-create.yml"
|
||||
vars:
|
||||
myhosts: "noc-cc01.rdu-cc.fedoraproject.org"
|
||||
|
||||
- name: Make cloud noc hardware
|
||||
hosts: noc-cc01.rdu-cc.fedoraproject.org
|
||||
user: root
|
||||
gather_facts: true
|
||||
|
||||
vars_files:
|
||||
- /srv/web/infra/ansible/vars/global.yml
|
||||
- "/srv/private/ansible/vars.yml"
|
||||
- /srv/web/infra/ansible/vars/{{ ansible_distribution }}.yml
|
||||
|
||||
roles:
|
||||
- base
|
||||
- rkhunter
|
||||
- nagios_client
|
||||
- hosts
|
||||
- openvpn/client
|
||||
- zabbix/zabbix_agent
|
||||
- ipa/client
|
||||
- collectd/base
|
||||
- sudo
|
||||
- dhcp_server
|
||||
- tftp_server
|
||||
|
||||
pre_tasks:
|
||||
- import_tasks: "{{ tasks_path }}/yumrepos.yml"
|
||||
|
||||
tasks:
|
||||
- name: install some packages which arent in playbooks
|
||||
ansible.builtin.package:
|
||||
state: present
|
||||
name:
|
||||
- nmap
|
||||
- tcpdump
|
||||
- dhcp-server
|
||||
|
||||
- name: Check if ntpd port is already known by selinux
|
||||
ansible.builtin.shell: semanage port -l | grep ntp
|
||||
register: ntp_selinux_port
|
||||
check_mode: no
|
||||
changed_when: false
|
||||
failed_when: false
|
||||
tags:
|
||||
- config
|
||||
- selinux
|
||||
|
||||
- name: Allow alternate ntpd port
|
||||
ansible.builtin.command: semanage port -a -t ntp_port_t -p tcp 124
|
||||
when: '"124" not in ntp_selinux_port'
|
||||
failed_when: false
|
||||
tags:
|
||||
- config
|
||||
- selinux
|
||||
|
||||
- name: Allow alternate ntpd port
|
||||
ansible.builtin.command: semanage port -a -t ntp_port_t -p udp 124
|
||||
when: '"124" not in ntp_selinux_port'
|
||||
failed_when: false
|
||||
tags:
|
||||
- config
|
||||
- selinux
|
||||
|
||||
handlers:
|
||||
- import_tasks: "{{ handlers_path }}/restart_services.yml"
|
||||
Reference in New Issue
Block a user