From a26ed9ca328446f8e83b69e1efb312cccf9c8363 Mon Sep 17 00:00:00 2001 From: James Tombleson Date: Tue, 14 May 2019 08:54:40 -0700 Subject: [PATCH] Adjusted cfg. Changed hosts on Winlogbeat. POC for Jenkins is working --- ansible.cfg | 2 +- .../linux/elastic/install-role-winlogbeat.yml | 2 +- playbook/linux/install-jenkins.yml | 24 ++++++++++++------- 3 files changed, 17 insertions(+), 11 deletions(-) diff --git a/ansible.cfg b/ansible.cfg index abce976..890b065 100644 --- a/ansible.cfg +++ b/ansible.cfg @@ -11,7 +11,7 @@ # some basic default values... -inventory = ~/hosts.d/ +inventory = ./hosts.d/ library = /usr/share/my_modules/ module_utils = /usr/share/my_module_utils/ remote_tmp = ~/.ansible/tmp diff --git a/playbook/linux/elastic/install-role-winlogbeat.yml b/playbook/linux/elastic/install-role-winlogbeat.yml index ead71a4..ba943da 100644 --- a/playbook/linux/elastic/install-role-winlogbeat.yml +++ b/playbook/linux/elastic/install-role-winlogbeat.yml @@ -1,7 +1,7 @@ --- - name: Install WinLogBeat - hosts: elasticClients + hosts: windows tasks: - name: Install WinLogBeat diff --git a/playbook/linux/install-jenkins.yml b/playbook/linux/install-jenkins.yml index b9b5d06..41e81a4 100644 --- a/playbook/linux/install-jenkins.yml +++ b/playbook/linux/install-jenkins.yml @@ -8,14 +8,20 @@ - name: Install Java become: yes import_role: - name: geerlingguy.java + name: geerlingguy.java - # https://galaxy.ansible.com/geerlingguy/jenkins - - name: Install Jenkins - become: yes - import_role: - name: geerlingguy.jenkins - vars: - jenkins_package_state: latest - jenkins_http_port: 8080 + - name: Install Jenkins + become: yes + import_role: + name: geerlingguy.jenkins + vars: + jenkins_package_state: latest + jenkins_http_port: 8080 + + - name: UFW Allow Jenkins + become: yes + ufw: + rule: allow + port: 8080 + comment: Jenkins