fix: create roles before users

This commit is contained in:
Adrien Waksberg 2019-05-06 14:15:54 +02:00
parent c201ae66fb
commit 8bcc51a08c
2 changed files with 17 additions and 13 deletions

View file

@ -4,12 +4,15 @@ This project adheres to [Semantic Versioning](http://semver.org/).
Which is based on [Keep A Changelog](http://keepachangelog.com/)
## [Unreleased]
- fix: create roles before users
- feat: add a debug mode with sensu_no_log variable
- feat: add mutators
- feat: add sensu_agent_redact variable to add new redact keywords
- doc: add example in readme
## [1.1.0] - 2019-02-17
- feat: add support of centos 7
- feat: add support of ubuntu 16.04
- feat: add support of ubuntu 18.04
@ -18,4 +21,5 @@ Which is based on [Keep A Changelog](http://keepachangelog.com/)
- test: add travis ci
## [1.0.0] - 2019-02-06
- first version

View file

@ -37,6 +37,19 @@
delay: 5
tags: sensu
- name: manage cluster roles
sensugo_cluster_role:
name: '{{ item.name }}'
rules: '{{ item.rules }}'
state: '{{ item.state|default("present") }}'
api_url: '{{ sensu_api_url }}'
api_user: '{{ sensu_api_user }}'
api_password: '{{ sensu_api_password }}'
loop: '{{ sensu_cluster_roles }}'
run_once: true
no_log: '{{ sensu_no_log }}'
tags: sensu
- name: manage users
sensugo_user:
name: '{{ item.name }}'
@ -51,19 +64,6 @@
no_log: '{{ sensu_no_log }}'
tags: sensu
- name: manage cluster roles
sensugo_cluster_role:
name: '{{ item.name }}'
rules: '{{ item.rules }}'
state: '{{ item.state|default("present") }}'
api_url: '{{ sensu_api_url }}'
api_user: '{{ sensu_api_user }}'
api_password: '{{ sensu_api_password }}'
loop: '{{ sensu_cluster_roles }}'
run_once: true
no_log: '{{ sensu_no_log }}'
tags: sensu
- name: manage namespaces
sensugo_namespace:
name: '{{ item.name }}'