Skip to content
Open
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
2 changes: 1 addition & 1 deletion playbooks/cloud/aws/inventory/group_vars/all.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
ansible_user: ec2-user
ansible_python_interpreter: /usr/bin/python3
ansible_ssh_extra_args: '-o StrictHostKeyChecking=no -o ControlMaster=auto -o ControlPersist=60s'
ansible_ssh_extra_args: -o StrictHostKeyChecking=no -o ControlMaster=auto -o ControlPersist=60s
ansible_ssh_pipelining: true
14 changes: 7 additions & 7 deletions playbooks/cloud/aws/prepare_aws_environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,14 +36,14 @@
ansible.builtin.file:
path: files
state: directory
mode: '0755'
mode: "0755"
when: __instruqt_ssh_key.stat.exists

- name: Copy instruqt_lab key to files folder
ansible.builtin.copy:
src: ~/.ssh/instruqt_lab
dest: files/aws_demo_ssh_key
mode: '0600'
mode: "0600"
when: __instruqt_ssh_key.stat.exists

- name: Create key pair called lightspeed-keypair
Expand Down Expand Up @@ -78,7 +78,7 @@
- proto: tcp
ports:
- 22
cidr_ip: 0.0.0.0/0
cidr_ip: "0.0.0.0/0"
rule_desc: allow all on ssh port
register: secgroup_lightspeed

Expand Down Expand Up @@ -107,18 +107,18 @@
subnets:
- "{{ subnet.subnet.id }}"
routes:
- dest: 0.0.0.0/0
- dest: "0.0.0.0/0"
gateway_id: "{{ igw.gateway_id }}"

handlers:
- name: Save private key file
ansible.builtin.copy:
content: "{{ ec2_key.key.private_key }}"
dest: "files/lightspeed-keypair.pem"
mode: '0600'
dest: files/lightspeed-keypair.pem
mode: "0600"

- name: Create files folder
ansible.builtin.file:
state: directory
path: files
mode: '0755'
mode: "0755"
2 changes: 1 addition & 1 deletion playbooks/cloud/aws/vars/ec2_instance.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ ec2_instance:
wait: true
tags:
function: lightspeed-demo
security_group: secgroup-lightspeed
security_group: secgroup-lightspeed
2 changes: 1 addition & 1 deletion playbooks/cloud/azure/inventory/group_vars/all.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
ansible_user: rhel
ansible_python_interpreter: /usr/bin/python3
ansible_ssh_extra_args: '-o StrictHostKeyChecking=no -o ControlMaster=auto -o ControlPersist=60s'
ansible_ssh_extra_args: -o StrictHostKeyChecking=no -o ControlMaster=auto -o ControlPersist=60s
ansible_ssh_pipelining: true
12 changes: 6 additions & 6 deletions playbooks/cloud/azure/prepare_azure_environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,19 +27,19 @@
ansible.builtin.file:
path: files
state: directory
mode: '0755'
mode: "0755"
when: __instruqt_ssh_key.stat.exists

- name: Copy Instruqt lab SSH keys
ansible.builtin.copy:
src: "~/.ssh/{{ item.name }}"
dest: "files/azure_demo_ssh_key{{ item.name | splitext | last }}"
src: ~/.ssh/{{ item.name }}
dest: files/azure_demo_ssh_key{{ item.name | splitext | last }}
mode: "{{ item.mode }}"
loop:
- name: instruqt_lab
mode: '0600'
mode: "0600"
- name: instruqt_lab.pub
mode: '0644'
mode: "0644"
when: __instruqt_ssh_key.stat.exists

- name: Generate local SSH keys if not Instruqt environment
Expand All @@ -49,7 +49,7 @@
ansible.builtin.file:
path: files
state: directory
mode: '0755'
mode: "0755"

- name: Generate Linux SSH key called files/azure_demo_ssh_key # noqa name[template]
community.crypto.openssh_keypair:
Expand Down
6 changes: 3 additions & 3 deletions playbooks/cloud/azure/solution_provision_azure_vm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@
admin_username: rhel

tasks:
# # 1. Uncomment this task description.
# # 1. Uncomment this task description.
# - name: Create a Standard_A1_v2 RHEL 8 VM called vm-lightspeed
# # 2. Remove previous task description and suggestion and uncomment the "vars:" section.
# # 3. Generate a new task using the below task description.
# # 2. Remove previous task description and suggestion and uncomment the "vars:" section.
# # 3. Generate a new task using the below task description.
- name: Create a VM called vm-lightspeed using vm_config var
azure.azcollection.azure_rm_virtualmachine:
resource_group: "{{ vm_config.resource_group }}"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
dest: /etc/cockpit/cockpit.conf
owner: root
group: root
mode: '0644'
mode: "0644"

- name: Start and enable service
ansible.builtin.service:
Expand Down
2 changes: 1 addition & 1 deletion tests/playbooks/install_cockpit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
dest: /etc/cockpit/cockpit.conf
owner: root
group: root
mode: '0644'
mode: "0644"

- name: Start and enable service
ansible.builtin.service:
Expand Down
2 changes: 1 addition & 1 deletion tests/playbooks/install_web_and_db.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
dest: /etc/httpd/conf/httpd.conf
owner: root
group: root
mode: '0644'
mode: "0644"

- name: Start and enable httpd service
ansible.builtin.service:
Expand Down
6 changes: 3 additions & 3 deletions tests/playbooks/provision_azure_vm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@
admin_username: rhel

tasks:
# # 1. Uncomment this task description.
# # 1. Uncomment this task description.
# - name: Create a Standard_A1_v2 RHEL 8 VM called vm-lightspeed
# # 2. Remove previous task description and suggestion and uncomment the "vars:" section.
# # 3. Generate a new task using the below task description.
# # 2. Remove previous task description and suggestion and uncomment the "vars:" section.
# # 3. Generate a new task using the below task description.
- name: Create a VM called vm-lightspeed using vm_config var
azure.azcollection.azure_rm_virtualmachine:
resource_group: "{{ vm_config.resource_group }}"
Expand Down