Skip to content

Commit

Permalink
Merge pull request #266 from brvoisin/fix_ansible_warning_about_include
Browse files Browse the repository at this point in the history
Fix Ansible warning about `include`
  • Loading branch information
UnderGreen authored Oct 19, 2023
2 parents b2bb33d + 9a931a7 commit e32d380
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,25 +21,25 @@
- "{{ ansible_os_family }}.yml"

- name: Include installation tasks
include: "{{ item }}"
include_tasks: "{{ item }}"
with_first_found:
- "install.{{ ansible_distribution | lower }}.yml"
- "install.{{ ansible_os_family | lower }}.yml"
tags: [mongodb]

- name: Include configuration.yml
include: configure.yml
include_tasks: configure.yml
tags: [mongodb]

- name: Include replication and auth configuration
include: replication_init_auth.yml
include_tasks: replication_init_auth.yml
when: ( mongodb_replication_replset | length > 0
and mongodb_security_authorization == 'enabled'
and mongodb_master is defined and mongodb_master )
tags: [mongodb]

- name: Include replication configuration
include: replication.yml
include_tasks: replication.yml
when: mongodb_replication_replset | length > 0
tags: [mongodb]

Expand All @@ -57,7 +57,7 @@
tags: [mongodb]

- name: Include authorization configuration
include: auth_initialization.yml
include_tasks: auth_initialization.yml
when: ( mongodb_security_authorization == 'enabled'
and not mongodb_replication_replset
and mongodb_user_admin_check.rc != 0 )
Expand Down Expand Up @@ -131,6 +131,6 @@
enabled: yes

- name: Include MMS Agent configuration
include: mms-agent.yml
include_tasks: mms-agent.yml
when: mongodb_mms_api_key | length > 0
tags: [mongodb]

0 comments on commit e32d380

Please sign in to comment.