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

Update to work with automation controller #47

Merged
merged 15 commits into from
Sep 7, 2023
4 changes: 4 additions & 0 deletions changelogs/fragments/20230817-update_for_controller.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
trivial:
- "Update playbooks that include credentials to be able to be used with Automation Controller (not just the command line)"
bugfixes:
- Update playbooks that include credentials to be able to be used with Automation Controller (not just the command line). https://github.com/redhat-cop/cloud.azure_ops/pull/47
4 changes: 2 additions & 2 deletions playbooks/roles/scale_virtual_machine/tasks/create.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
resource_group: "{{ scale_virtual_machine_resource_group }}"
allocation_method: static
name: "{{ scale_virtual_machine_load_balancer.public_ip_name }}"
sku: Basic
sku: Standard
domain_name: "{{ scale_virtual_machine_load_balancer.domain_name | default(omit) }}"
register: public_ip

Expand All @@ -57,7 +57,7 @@
azure.azcollection.azure_rm_loadbalancer:
resource_group: "{{ scale_virtual_machine_resource_group }}"
name: "{{ scale_virtual_machine_load_balancer.name }}"
sku: Basic
sku: Standard
frontend_ip_configurations:
- name: frontend
public_ip_address: "{{ scale_virtual_machine_load_balancer.public_ip_name }}"
Expand Down
4 changes: 2 additions & 2 deletions playbooks/vars/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ azure_vm_user_password: 4fB5In3ueO7,
azure_vm_image:
offer: RHEL
publisher: RedHat
sku: 7-LVM
sku: 8-LVM
version: latest
azure_vm_size: Standard_A2
azure_vm_size: Standard_A1_v2
azure_bastion_vm_size: Standard_A1_v2
azure_number_vm: 3

Expand Down
5 changes: 3 additions & 2 deletions playbooks/vmss_migrate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -97,17 +97,18 @@
ansible.builtin.yum:
name:
- python3
- python-virtualenv
- python3-virtualenv
- sshpass
- git
state: present
become: true

- name: Create virtualenv

Check failure on line 106 in playbooks/vmss_migrate.yml

View workflow job for this annotation

GitHub Actions / ansible-lint

package-latest

Package installs should not use latest.
ansible.builtin.pip:
virtualenv: "{{ ansible_venv_path }}"
virtualenv_python: python3
name: ansible==2.10.*
name: ansible
state: latest
abikouo marked this conversation as resolved.
Show resolved Hide resolved

- name: Create application directories
ansible.builtin.file:
Expand Down
5 changes: 3 additions & 2 deletions playbooks/webapp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,17 +61,18 @@
ansible.builtin.yum:
name:
- python3
- python-virtualenv
- python3-virtualenv
- sshpass
- git
state: present
become: true

- name: Create virtualenv

Check failure on line 70 in playbooks/webapp.yml

View workflow job for this annotation

GitHub Actions / ansible-lint

package-latest

Package installs should not use latest.
ansible.builtin.pip:
virtualenv: "{{ ansible_venv_path }}"
virtualenv_python: python3
name: ansible==2.10.*
name: ansible
state: latest
abikouo marked this conversation as resolved.
Show resolved Hide resolved

- name: Create application directories
ansible.builtin.file:
Expand Down
Loading