playbook.yml 1.15 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
---
# file: security_service.yml
- hosts: vagrant
  sudo: yes
  roles:
    - { role: java8-64 }
    - { role: postgresql }
    - { role: wildfly10 }
    - { role: mock_web_access }
    - { role: properties_service }
    - { role: swagger_ui }
    - { role: deploy_prep }

  tasks: 
    - name: update build_vars with the list of roles executed.
      lineinfile: "dest='/etc/ansible/facts.d/build_vars.fact' create=true regexp='[roles_provisioned]' line='[roles_provisioned]'"
    - lineinfile: dest='/etc/ansible/facts.d/build_vars.fact' regexp=java8 line='java8=base-wildfly-10'
    - lineinfile: dest='/etc/ansible/facts.d/build_vars.fact' regexp=postgresql line='postgresql=base-wildfly-10'
    - lineinfile: dest='/etc/ansible/facts.d/build_vars.fact' regexp=wildfly10 line='wildfly10=base-wildfly-10'
    - lineinfile: dest='/etc/ansible/facts.d/build_vars.fact' regexp=mock_web_access line='mock_web_access=base-wildfly-10'
    - lineinfile: dest='/etc/ansible/facts.d/build_vars.fact' regexp=properties_service line='properties_service=base-wildfly-10'
    - lineinfile: dest='/etc/ansible/facts.d/build_vars.fact' regexp=swagger_ui line='swagger_ui=base-wildfly-10'