8000 Add compatibility for AmazonLinux. by mgla · Pull Request #127 · geerlingguy/ansible-role-apache · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Add compatibility for AmazonLinux. #127

New issue

Have a question about this project? Sign up for a free GitHub a 8000 ccount 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

Merged
merged 2 commits into from
Apr 3, 2017
Merged

Conversation

mgla
Copy link
Contributor
@mgla mgla commented Apr 3, 2017

Ansible identifies AmazonLinux as:
ansible_os_family: "RedHat"
ansible_distribution_major_version == "NA"

But it is seemingly otherwise indistinguishable from RedHat / CentOS.

This sets the correct variables for packages, services, etc, which
differ from RHEL / CentOS.

Ansible identifies AmazonLinux as:
  ansible_os_family: "RedHat"
  ansible_distribution_major_version == "NA"

But it is seemingly otherwise indistinguishable from RedHat / CentOS.

This sets the correct variables for packages, services, etc, which
differ from RHEL / CentOS.
@mgla
Copy link
Contributor A 8000 uthor
mgla commented Apr 3, 2017

Also, AmazonLinux has both Apache2.2 and Apache2.4 under different package names. I am not really sure on how to include this.

tasks/main.yml Outdated
@@ -3,6 +3,11 @@
- name: Include OS-specific variables.
include_vars: "{{ ansible_os_family }}.yml"

# If AmazonLinuxm include needed variables.
- name: Include OS-specific variables.
Copy link
Owner

Choose a reason for hiding this comment

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

Maybe delete the comment above this line, and set name: Include variables for Amazon Linux.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I agree. Done.

apache_vhosts_version: "2.4"

__apache_packages:
- httpd24
Copy link
Owner

Choose a reason for hiding this comment

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

I'd say (regarding your question in the PR summary) it's fine to default to 2.4, and then users could (if they wanted) override by setting apache_packages in their own playbook vars later.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I agree with that.

@geerlingguy geerlingguy merged commit bea0193 into geerlingguy:master Apr 3, 2017
geerlingguy added a commit that referenced this pull request Apr 3, 2017
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
0