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

Andrew Huffman - PR changes #8

Merged
merged 3 commits into from
Oct 21, 2016
Merged

Andrew Huffman - PR changes #8

merged 3 commits into from
Oct 21, 2016

Conversation

ahuffman
Copy link
Owner

Some changes I made a few months back, as we discussed today.

@wtcross
Copy link
Contributor

wtcross commented Oct 19, 2016

Awesome, thank you for submitting this! I noticed a few things that should be addressed. I'll submit a comment for each of them.

@@ -1,6 +1,7 @@
The MIT License (MIT)

Copyright (c) 2016 Tyler Cross
Copyright (c) 2016 Andrew Huffman
Copy link
Contributor

Choose a reason for hiding this comment

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

👍

> An Ansible role for comprehensive management of a sudoers configuration.

[![Build Status](https://travis-ci.org/wtcross/ansible-sudoers.svg?branch=master)](https://travis-ci.org/wtcross/ansible-sudoers)
# ahuffman.sudoers
Copy link
Contributor

Choose a reason for hiding this comment

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

I'd like to give you contributor access to this repo. That said, I think this'll still need to be changed to wtcross.sudoers.

Copy link
Owner Author

Choose a reason for hiding this comment

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

Changed back to wtcross.sudoers in latest commit.

- specifications

*Tip:* Here's a [great document about sudoers configuration](https://help.ubuntu.com/community/Sudoers)
Copy link
Contributor

Choose a reason for hiding this comment

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

Is there a reason you removed this note? I don't care about the source, but wanted the README in this role to point to some comprehensive sudoers guide. Open to suggestions on an alternative.

Copy link
Owner Author

Choose a reason for hiding this comment

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

I was assuming users of this role would have experience manipulating /etc/sudoers, but I have no problem adding it back in. A Fedora/CentOS resource might be better in the future ;). Added back in latest commit.


## License
[MIT](LICENSE)

## Author Information
### Original Author:
Copy link
Contributor

Choose a reason for hiding this comment

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

Rather than specifying original author, how about just listing each of us as an author?

Copy link
Owner Author

Choose a reason for hiding this comment

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

Changed to include us both in latest commit.

@@ -1,10 +1,11 @@
galaxy_info:
author: Tyler Cross
description:
issue_tracker_url: https://github.com/wtcross/ansible-sudoers/issues
Copy link
Contributor

Choose a reason for hiding this comment

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

If the code is going to live in this repo, can we just keep this url?

Copy link
Owner Author

Choose a reason for hiding this comment

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

Fixed in latest commit

@@ -4,20 +4,20 @@
name: sudo
update_cache: yes
state: present
when: "{{ ansible_os_family == 'RedHat' }}"
when: ansible_os_family == 'RedHat'
Copy link
Contributor

Choose a reason for hiding this comment

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

In order to make this following best practices can you wrap it with template tags?

Copy link
Contributor

Choose a reason for hiding this comment

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

Ex: "{{ ansible_os_family == 'RedHat' }}"

Copy link
Contributor

Choose a reason for hiding this comment

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

Otherwise Ansible will throw a warning when running the playbook.

Copy link
Contributor

Choose a reason for hiding this comment

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

See the porting guide and look for bare variables: https://docs.ansible.com/ansible/porting_guide_2.0.html

Copy link
Owner Author

Choose a reason for hiding this comment

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

Should be all set now


- name: Ensure sudo is installed for Debian family OSs
apt:
name: sudo
update_cache: yes
state: present
when: "{{ ansible_os_family == 'Debian' }}"
when: ansible_os_family == 'Debian'
Copy link
Contributor

Choose a reason for hiding this comment

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

In order to make this following best practices can you wrap it with template tags?

Copy link
Owner Author

Choose a reason for hiding this comment

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

Should be all set now


- name: Ensure sudo is installed for SUSE family OSs
zypper:
name: sudo
state: present
when: "{{ ansible_os_family == 'SUSE' }}"
when: ansible_os_family == 'SUSE'
Copy link
Contributor

Choose a reason for hiding this comment

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

In order to make this following best practices can you wrap it with template tags?

Copy link
Owner Author

Choose a reason for hiding this comment

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

Should be all set now

@wtcross
Copy link
Contributor

wtcross commented Oct 21, 2016

Thanks for the quick responses! Merging now.

@wtcross wtcross merged commit 835778e into ahuffman:master Oct 21, 2016
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.

None yet

2 participants