agent and manager grouping task

This commit is contained in:
root 2018-10-31 10:49:45 +00:00
parent 1bd21e381b
commit dcd7b1a6fd
2 changed files with 40 additions and 58 deletions

View File

@ -22,37 +22,28 @@
cis_distribution_filename: cis_debian_linux_rcl.txt cis_distribution_filename: cis_debian_linux_rcl.txt
when: ansible_os_family == "Debian" when: ansible_os_family == "Debian"
- name: Debian/Ubuntu | Setting webupd8 repository - when:
apt_repository: - wazuh_agent_config.cis_cat.disable == 'no'
repo: 'ppa:webupd8team/java' - wazuh_agent_config.cis_cat.install_java == 'yes'
codename: 'xenial' block:
update_cache: yes - name: Debian/Ubuntu | Setting webupd8 repository
when: apt_repository:
- wazuh_agent_config.cis_cat.disable == 'no' repo: 'ppa:webupd8team/java'
- wazuh_agent_config.cis_cat.install_java == 'yes' codename: 'xenial'
tags: update_cache: yes
- init
- name: Debian/Ubuntu | Accept Oracle Java 8 license - name: Debian/Ubuntu | Accept Oracle Java 8 license
debconf: debconf:
name: oracle-java8-installer name: oracle-java8-installer
question: shared/accepted-oracle-license-v1-1 question: shared/accepted-oracle-license-v1-1
value: true value: true
vtype: boolean vtype: boolean
when:
- wazuh_agent_config.cis_cat.disable == 'no'
- wazuh_agent_config.cis_cat.install_java == 'yes'
tags:
- init
- name: Debian/Ubuntu | Oracle Java 8 installer - name: Debian/Ubuntu | Oracle Java 8 installer
apt: apt:
name: oracle-java8-installer name: oracle-java8-installer
state: present state: present
cache_valid_time: 3600 cache_valid_time: 3600
when:
- wazuh_agent_config.cis_cat.disable == 'no'
- wazuh_agent_config.cis_cat.install_java == 'yes'
tags: tags:
- init - init

View File

@ -30,37 +30,28 @@
set_fact: set_fact:
cis_distribution_filename: cis_debian_linux_rcl.txt cis_distribution_filename: cis_debian_linux_rcl.txt
- name: Debian/Ubuntu | Setting webupd8 repository - when:
apt_repository: - wazuh_manager_config.cis_cat.disable == 'no'
repo: 'ppa:webupd8team/java' - wazuh_manager_config.cis_cat.install_java == 'yes'
codename: 'xenial' block:
update_cache: yes - name: Debian/Ubuntu | Setting webupd8 repository
when: apt_repository:
- wazuh_manager_config.cis_cat.disable == 'no' repo: 'ppa:webupd8team/java'
- wazuh_manager_config.cis_cat.install_java == 'yes' codename: 'xenial'
tags: update_cache: yes
- init
- name: Debian/Ubuntu | Accept Oracle Java 8 license - name: Debian/Ubuntu | Accept Oracle Java 8 license
debconf: debconf:
name: oracle-java8-installer name: oracle-java8-installer
question: shared/accepted-oracle-license-v1-1 question: shared/accepted-oracle-license-v1-1
value: true value: true
vtype: boolean vtype: boolean
when:
- wazuh_manager_config.cis_cat.disable == 'no'
- wazuh_manager_config.cis_cat.install_java == 'yes'
tags:
- init
- name: Debian/Ubuntu | Oracle Java 8 installer - name: Debian/Ubuntu | Oracle Java 8 installer
apt: apt:
name: oracle-java8-installer name: oracle-java8-installer
state: present state: present
cache_valid_time: 3600 cache_valid_time: 3600
when:
- wazuh_manager_config.cis_cat.disable == 'no'
- wazuh_manager_config.cis_cat.install_java == 'yes'
tags: tags:
- init - init