Matrix Docker Ansible eploy
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
407 B

  1. - name: Set the new authorized key taken from file
  2. authorized_key:
  3. user: root
  4. state: present
  5. exclusive: yes
  6. key: "{{ lookup('file', '/var/lib/awx/projects/hosting/client_public.key') }}"
  7. - name: Set boolean value to exit playbook
  8. set_fact:
  9. end_playbook: true
  10. - name: End playbook if this task list is called.
  11. meta: end_play
  12. when: end_playbook is defined and end_playbook|bool