[all] lint modules
This commit is contained in:
1 parent
e47aaa5f7e
commit
ed30689c34
6 files changed
+20
-6
No files matched your search
+1
-1
Submodule inventories updated: 4d4a59a12f...59ac227683.
@@ -2,4 +2,5 @@
|
||||
command: "docker-compose -p {{ docker_compose_project_name }} down -v"
|
||||
args:
|
||||
chdir: "{{ docker_compose_data_dir }}"
|
||||
register: result
|
||||
register: result
|
||||
changed_when: true
|
||||
@@ -1,4 +1,5 @@
|
||||
- name: "Restart {{ role_name }} project"
|
||||
docker_compose:
|
||||
project_src: "{{ docker_compose_data_dir }}"
|
||||
state: restarted
|
||||
command: "docker-compose -p {{ docker_compose_project_name }} restart"
|
||||
args:
|
||||
chdir: "{{ docker_compose_data_dir }}"
|
||||
changed_when: true
|
||||
@@ -19,4 +19,5 @@
|
||||
command: "docker-compose -p {{ docker_compose_project_name }} up -d"
|
||||
args:
|
||||
chdir: "{{ docker_compose_data_dir }}"
|
||||
register: result
|
||||
register: result
|
||||
changed_when: "'up-to-date' not in result.stderr"
|
||||
@@ -38,6 +38,13 @@ function update-docs() {
|
||||
python ./library/graph.py
|
||||
}
|
||||
|
||||
function list-hosts() {
|
||||
if test -z "$1"; then echo "\$1 is empty"; exit; fi
|
||||
|
||||
activate-venv
|
||||
ansible -i $1 all --list-hosts
|
||||
}
|
||||
|
||||
case "$1" in
|
||||
init)
|
||||
sudo touch /var/log/ansible.log
|
||||
@@ -57,6 +64,9 @@ case "$1" in
|
||||
update-docs)
|
||||
update-docs
|
||||
;;
|
||||
list-hosts)
|
||||
list-hosts $2
|
||||
;;
|
||||
lint)
|
||||
activate-venv
|
||||
ansible-lint *.yml
|
||||
|
||||
Reference in new issue
Block a user