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

Use become instead of sudoing the command #8

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ before_install:
- sudo apt-get update -qq
- sudo apt-get install -qq python-apt python-pycurl
install:
- pip install ansible==1.5.0
- pip install ansible==1.9.0
script:
- echo localhost > inventory
- ansible-playbook --syntax-check -i inventory test.yml
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Ansible role which installs and configures Apache Cassandra.

##### Ansible

It has been tested on Ansible 1.5 and above, and depends on the following roles:
It has been tested on Ansible 1.9 and above, and depends on the following roles:
- ANXS.oracle-jdk


Expand Down
2 changes: 1 addition & 1 deletion meta/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ galaxy_info:
author: pjan vandaele
company: ANXS
description: Install and configure Apache Cassandra
min_ansible_version: 1.5
min_ansible_version: 1.9
license: MIT
platforms:
- name: Ubuntu
Expand Down
3 changes: 2 additions & 1 deletion tasks/user.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,5 @@
state: directory

- name: Cassandra | Set the right expiration on the cassandra user
command: "sudo chage -I -1 -E -1 -m -1 -M -1 -W -1 -E -1 {{cassandra_user}}"
become: yes
command: "chage -I -1 -E -1 -m -1 -M -1 -W -1 -E -1 {{cassandra_user}}"