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

Fix Ansible warning about include #266

Merged
Merged
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
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]