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

Anchore Engine service setup

The following playbook will set up the Anchore Engine service, which contains the engine container as well as the postgres to store database information. The admin_password variable is the admin user password to  access the REST API of Anchore:

- name: anchore server setup  hosts: anchore  become: yes  vars:    db_password: changeme    admin_password: secretpassword  tasks:    - name: creating volumes      file:        path: "{{ item }}"        recurse: yes        state: directory            with_items:        - /root/aevolume/db        - /root/aevolume/config          - name: copying anchore-engine configuration      template:        src: config.yaml.j2        dest: /root/aevolume/config/config.yaml    - name: starting anchore-db container      docker_container:        name: anchore-db        image: postgres:9 volumes: ...
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