Skip to content

Commit

Permalink
Merge pull request #2 from zeelax/master
Browse files Browse the repository at this point in the history
Ansible 2.x compatibility
  • Loading branch information
ahelal committed May 20, 2016
2 parents 3d3c35b + 663bf63 commit 16a77dc
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 8 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ A role to manage hostnames. This roles does a number of different things in non

Requirements
------------
tested on Ubuntu 12.04 and ansible > 1.6
tested on Ubuntu 12.04 and ansible > 1.9

### Variables
```
Expand Down
3 changes: 2 additions & 1 deletion meta/main.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
galaxy_info:
author: yetu
description: "Ansible Hostname"
min_ansible_version: 1.7
min_ansible_version: 1.9
platforms:
- name: Ubuntu
versions:
- precise
- trusty
categories:
- system

Expand Down
4 changes: 2 additions & 2 deletions tests/test_default.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
- hosts: test
sudo: yes
become: yes
vars:
correct_short_hostname: "play.berlin.de.example.com"
#remote_user: root
Expand Down Expand Up @@ -37,4 +37,4 @@
- name: Assert host file
assert:
that:
- "my_hostfile.rc == 0 "
- "my_hostfile.rc == 0 "
4 changes: 2 additions & 2 deletions tests/test_level1.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
- name: Test level 1
hosts: test
sudo: yes
become: yes
vars:
hostname_sub_level : 1
correct_short_hostname : "level"
Expand All @@ -28,4 +28,4 @@
- name: test_level1 | Assert fqdn command
assert:
that:
- "fqdn.stdout == correct_fqdn_hostname"
- "fqdn.stdout == correct_fqdn_hostname"
4 changes: 2 additions & 2 deletions tests/test_level3.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
- name: Test level 3
hosts: test
sudo: yes
become: yes
vars:
hostname_sub_level : 3
correct_short_hostname : "level.berlin.de"
Expand All @@ -27,4 +27,4 @@
- name: test_level3 | Assert fqdn command
assert:
that:
- "fqdn.stdout == correct_fqdn_hostname"
- "fqdn.stdout == correct_fqdn_hostname"

0 comments on commit 16a77dc

Please sign in to comment.