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