Skip to content

Commit

Permalink
fix: update deprecated include with import_tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
deshannalinda committed Oct 4, 2024
1 parent ea1371e commit 17b991a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tasks/agent-register/create-activation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
when: "aws_ssm_activation_code is defined or aws_ssm_activation_id is defined"

# Detecting the current AWS Region to use.
- include: region-detect/main.yml
- import_tasks: region-detect/main.yml
when: aws_ssm_ec2_region is not defined

# Creating a new IAM Managed policy to be attached to
Expand Down
4 changes: 2 additions & 2 deletions tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@
when: ansible_pkg_mgr is not defined and ansible_os_family != 'Windows'

# Installs the AWS SSM Agent software.
- include: agent-install/main.yml
- import_tasks: agent-install/main.yml
tags:
- install-agent

# Registers the SSM Agent on AWS SSM.
- include: agent-register/main.yml
- import_tasks: agent-register/main.yml
tags:
- register-agent

0 comments on commit 17b991a

Please sign in to comment.