Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Revert "adding task and condition for aap2.5" #8832

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 0 additions & 6 deletions ansible/roles/ansible_bu_setup_workshop/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,6 @@
workshop_type: rhel
workshop_version: 1.0.18

# Enable offline image base AAP repo
ansible_bu_setup_workshop_enable_offline_aap_repo: true
ansible_bu_setup_workshop_aap_packages:
- ansible-core
- ansible-navigator

# Ansible BU exercise base directory
ansible_bu_setup_workshop_exercise_src: ansible_rhel
# Destination directory where exercise will be copied
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
delegate_to: localhost

- name: Enable offline automation controller repo
when: ansible_bu_setup_workshop_enable_offline_aap_repo | bool
community.general.ini_file:
path: "/etc/yum.repos.d/ansible-automation-platform.repo"
section: ansible-automation-platform
Expand All @@ -18,7 +17,9 @@

- name: Install ansible core & navigator
ansible.builtin.dnf:
name: "{{ ansible_bu_setup_workshop_aap_packages }}"
name:
- ansible-core
- ansible-navigator
state: present

- name: Install ansible.cfg in home directory
Expand Down
1 change: 0 additions & 1 deletion ansible/roles/automation_platform_loader/defaults/main.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
---
automation_platform_loader_generate_ssh_keypair: true
automation_platform_loader_create_token: 2.4

automation_platform_loader_ssh_key_type: ed25519
automation_platform_loader_ssh_key_path: "/tmp/id_{{ automation_platform_loader_ssh_key_type }}"
13 changes: 0 additions & 13 deletions ansible/roles/automation_platform_loader/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
block:

- name: Create a new AAP2 Auth token using controller username/password
when: automation_platform_loader_aap_version <= 2.4
awx.awx.token:
description: Creating token to configure AAP2 resources
scope: write
Expand All @@ -31,19 +30,7 @@
retries: 10
delay: 30

- name: Create a new AAP2 Auth token using controller username/password
when: automation_platform_loader_aap_version > 2.4
ansible.controller.token:
description: Creating token to configure AAP2 resources
scope: write
state: present
register: r_aap2_token
until: r_aap2_token.failed == false
retries: 10
delay: 30

- name: Set agnosticd_user_info ssh data
when: automation_platform_loader_create_token | bool
agnosticd_user_info:
data:
aap_controller_token: "{{ r_aap2_token.ansible_facts.controller_token.token }}"
Expand Down
Loading