forked from ansible/awx
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
put install bundle file in templates dir
also enable Copr repo in the playbook Signed-off-by: Hao Liu <haoli@redhat.com>
- Loading branch information
1 parent
c153ac9
commit ada0d45
Showing
4 changed files
with
58 additions
and
54 deletions.
There are no files selected for viewing
18 changes: 18 additions & 0 deletions
18
awx/api/templates/instance_install_bundle/install_receptor.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
{% verbatim %} | ||
--- | ||
- hosts: all | ||
become: yes | ||
tasks: | ||
- name: Create the receptor user | ||
user: | ||
name: "{{ receptor_user }}" | ||
shell: /bin/bash | ||
- name: Enable Copr repo for Receptor | ||
command: dnf copr enable ansible-awx/receptor -y | ||
- import_role: | ||
name: ansible.receptor.setup | ||
- name: Install ansible-runner | ||
pip: | ||
name: ansible-runner | ||
executable: pip3.9 | ||
{% endverbatim %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
--- | ||
all: | ||
hosts: | ||
remote-execution: | ||
ansible_host: {{ instance.hostname }} | ||
ansible_user: <username> # user provided | ||
ansible_ssh_private_key_file: ~/.ssh/id_rsa | ||
receptor_verify: true | ||
receptor_tls: true | ||
receptor_work_commands: | ||
ansible-runner: | ||
command: ansible-runner | ||
params: worker | ||
allowruntimeparams: true | ||
verifysignature: true | ||
custom_worksign_public_keyfile: receptor/work-public-key.pem | ||
custom_tls_certfile: receptor/tls/receptor.crt | ||
custom_tls_keyfile: receptor/tls/receptor.key | ||
custom_ca_certfile: receptor/tls/ca/receptor-ca.crt | ||
receptor_user: awx | ||
receptor_group: awx | ||
receptor_protocol: 'tcp' | ||
receptor_listener: true | ||
receptor_port: {{ instance.listener_port }} | ||
receptor_dependencies: | ||
- podman | ||
- crun | ||
- python39-pip |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
collections: | ||
- name: ansible.receptor | ||
source: https://github.com/ansible/receptor-collection/ | ||
type: git | ||
version: 0.1.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters