-
Notifications
You must be signed in to change notification settings - Fork 4
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
base: master
Are you sure you want to change the base?
Conversation
molecule/default/converge.yml
Outdated
pre_tasks: | ||
|
||
- name: Install nginx | ||
apt: |
There was a problem hiding this comment.
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.
molecule/default/converge.yml
Outdated
become: true | ||
|
||
vars: | ||
- default_mail_recipient: [email protected] |
There was a problem hiding this comment.
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.
molecule/default/prepare.yml
Outdated
- name: Ensure python is installed | ||
package: | ||
name: | ||
- python |
There was a problem hiding this comment.
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.
molecule/default/prepare.yml
Outdated
- name: Ensure nginx is installed for Debian | ||
apt: pkg=nginx state=present update_cache=true | ||
when: ansible_os_family == 'Debian' |
There was a problem hiding this comment.
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.
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 |
There was a problem hiding this comment.
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.
…, in order to pass molecule tests
… addresses the new snap-based certbot installation
No description provided.