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

Add automated tests #4

Open
wants to merge 16 commits into
base: master
Choose a base branch
from
Open

Add automated tests #4

wants to merge 16 commits into from

Conversation

Chithrak07
Copy link
Member

No description provided.

pre_tasks:

- name: Install nginx
apt:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You'll need to either use "package" instead of "apt" (will only works if the package is the same name on both OS'es), or split this into OS-specific versions.

become: true

vars:
- default_mail_recipient: webmaster@acromedia.com
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please use fictional values instead.

- name: Ensure python is installed
package:
name:
- python
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Chithrak07 You might need python3 here? Python2 is Dead/EOL. This is just a guess. You'll need to find out for sure what the package name is for RH/CentOS.

Comment on lines 27 to 29
- name: Ensure nginx is installed for Debian
apt: pkg=nginx state=present update_cache=true
when: ansible_os_family == 'Debian'
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If this task happens to fail, just update apt's cache first by itself before trying to install anything.

when: ansible_os_family == 'Debian'

- name: Ensure python is installed for Debian
apt: pkg=python state=present update_cache=true
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same issue here - Python without a version is generally python2 ... we want python3.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants