Skip to Content
Security Automation with Ansible 2
book

Security Automation with Ansible 2

by Akash Mahajan, MADHU AKULA
December 2017
Intermediate to advanced
364 pages
7h 30m
English
Packt Publishing
Content preview from Security Automation with Ansible 2

Prerequisites for setting up Elastic Stack

Let's start with the prerequisites. Here, we are using debconf to add values for interactive inputs. Then we are installing Java, nginx, and other required packages:

- name: install python 2  raw: test -e /usr/bin/python || (apt -y update && apt install -y python-minimal)- name: accepting oracle java license agreement  debconf:    name: 'oracle-java8-installer'    question: 'shared/accepted-oracle-license-v1-1'    value: 'true'    vtype: 'select'- name: adding ppa repo for oracle java by webupd8team  apt_repository:    repo: 'ppa:webupd8team/java'    state: present    update_cache: yes- name: installing java nginx apache2-utils and git  apt:    name: "{{ item }}"    state: present    update_cache: yes  with_items: - python-software-properties ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Implementing DevOps with Ansible 2

Implementing DevOps with Ansible 2

Jonathan McAllister
Practical Ansible 2

Practical Ansible 2

Daniel Oh, James Freeman, Fabio Alessandro Locati

Publisher Resources

ISBN: 9781788394512Supplemental Content