Setup receptor after podman

Might help to install receptor last,
that way when nodes are first connected to the mesh
they already have podman installed and can potentially
run jobs. Otherwise it might be possible for controller
to launch jobs against nodes that aren't fully set up.
This commit is contained in:
Seth Foster 2023-08-22 11:41:44 -04:00 committed by Seth Foster
parent 470ecc4a4f
commit 0577e1ee79
2 changed files with 4 additions and 5 deletions

View File

@ -1,4 +1,3 @@
receptor_host_identifier: {{ instance.hostname }}
receptor_user: awx
receptor_group: awx
receptor_verify: true

View File

@ -1,16 +1,16 @@
{% verbatim %}
---
- hosts: all
become: yes
tasks:
- name: Create the receptor user
user:
{% verbatim %}
name: "{{ receptor_user }}"
shell: /bin/bash
- import_role:
name: ansible.receptor.setup
{% endverbatim %}
shell: /bin/bash
{% if instance.node_type == "execution" %}
- import_role:
name: ansible.receptor.podman
{% endif %}
- import_role:
name: ansible.receptor.setup