Skip to content

Add automated tests#4

Open
Chithrak07 wants to merge 16 commits into
masterfrom
add-automated-tests
Open

Add automated tests#4
Chithrak07 wants to merge 16 commits into
masterfrom
add-automated-tests

Conversation

@Chithrak07
Copy link
Copy Markdown
Member

No description provided.

Comment thread molecule/default/converge.yml Outdated
pre_tasks:

- name: Install nginx
apt:
Copy link
Copy Markdown
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.

Comment thread molecule/default/converge.yml Outdated
become: true

vars:
- default_mail_recipient: webmaster@acromedia.com
Copy link
Copy Markdown
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.

Comment thread molecule/default/prepare.yml Outdated
- name: Ensure python is installed
package:
name:
- python
Copy link
Copy Markdown
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 thread molecule/default/prepare.yml Outdated
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
Copy Markdown
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.

Comment thread molecule/default/prepare.yml Outdated
when: ansible_os_family == 'Debian'

- name: Ensure python is installed for Debian
apt: pkg=python state=present update_cache=true
Copy link
Copy Markdown
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