From e237155a0f0be60cd69da36992e0c8e13806a79d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lucas=20Ple=C3=9F?= Date: Sun, 12 Jan 2020 16:41:43 +0100 Subject: [PATCH] added docu --- README.md | 10 ++++++++++ ansible-ctdo/roles/test/tasks/main.yml | 4 ---- ansible-ctdo/site.yml | 1 - 3 files changed, 10 insertions(+), 5 deletions(-) delete mode 100644 ansible-ctdo/roles/test/tasks/main.yml diff --git a/README.md b/README.md index 8218927..3fe3f52 100644 --- a/README.md +++ b/README.md @@ -22,3 +22,13 @@ Nodes are configured from 10.10.0.100 and above dhcp range is 10.10.1.1-10.10.1.250 + +## useful commands + +``` +for i in `seq 136 142`; do ssh root@10.10.0.$i reboot; done +for i in `seq 100 142`; do ssh root@10.10.0.$i "sh -c 'nohup stress -c 8 > /dev/null 2>&1 &'"; done + + +ansible-playbook -i inventory site.yml --limit "node42" --tags "hostname,telegraf" -K --ask-pass +``` \ No newline at end of file diff --git a/ansible-ctdo/roles/test/tasks/main.yml b/ansible-ctdo/roles/test/tasks/main.yml deleted file mode 100644 index 041a5f6..0000000 --- a/ansible-ctdo/roles/test/tasks/main.yml +++ /dev/null @@ -1,4 +0,0 @@ -- name: host - debug: msg="{{ item }}" - with_items: - - "{{ groups['nodes'].ansible_host }}" \ No newline at end of file diff --git a/ansible-ctdo/site.yml b/ansible-ctdo/site.yml index fc8af78..99816a0 100644 --- a/ansible-ctdo/site.yml +++ b/ansible-ctdo/site.yml @@ -4,7 +4,6 @@ - { role: base, tags: 'base' } - { role: authkeys, tags: 'authkeys', group: 'admins' } - { role: dj-wasabi.telegraf, tags: 'telegraf', become: yes } - - { role: test, tags: 'test' } remote_user: debian become_method: su become: true