Skip to content

Commit

Permalink
Merge pull request #6 from sysdiglabs/new_molecule_flows
Browse files Browse the repository at this point in the history
Update molecule flows
  • Loading branch information
aroberts87 authored Apr 21, 2023
2 parents d17a9f2 + ae50fe4 commit fe87c7e
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
11 changes: 11 additions & 0 deletions molecule/agent/molecule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ platforms:
region: {{ aws_region }}
vpc_subnet_id: {{ vpc_subnet_id }}
- name: centos8
boot_wait_seconds: 180
image_filters:
architecture: x86_64
image_name: "CentOS Stream 8*"
Expand All @@ -53,8 +54,18 @@ provisioner:
name: ansible-lint
scenario:
name: agent
create_sequence:
- create
- prepare
converge_sequence:
- create
- prepare
- converge
destroy_sequence:
- destroy
test_sequence:
- create
- prepare
- converge
- verify
- destroy
Expand Down
11 changes: 10 additions & 1 deletion molecule/agent/prepare.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,18 @@
- name: Prepare
hosts: all
gather_facts: false
become: true
tasks:
- name: Make sure python3 is installed
package:
name: python3
state: present
become: true

- name: Update Systems
package:
name: "*"
state: latest

- name: Reboot
reboot:
reboot_timeout: 3600

0 comments on commit fe87c7e

Please sign in to comment.