diff --git a/.travis.yml b/.travis.yml index 9b90639..e840560 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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 diff --git a/README.md b/README.md index cc4951e..3c6c24c 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/meta/main.yml b/meta/main.yml index 64ec964..04ab428 100644 --- a/meta/main.yml +++ b/meta/main.yml @@ -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 diff --git a/tasks/user.yml b/tasks/user.yml index d9a1fbb..f17de95 100644 --- a/tasks/user.yml +++ b/tasks/user.yml @@ -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}}"