0

I just need a simple playbook or ad-hoc syntax to shutdown a group of CoreOS hosts.

Something tells me I may need to use the shell module, which truthfully wouldn't be awful.

The proper way to shutdown a CoreOS host is 'systemctl poweroff'.

mr.zog
  • 923
  • 3
  • 20
  • 39

1 Answers1

0

Ansible command module will help you. I didn't try to use it for halting the servers but have used for different purposes.

Example

- name: return motd to registered var
  command: cat /etc/motd
  register: mymotd
kenlukas
  • 3,101
  • 2
  • 16
  • 26
Bright
  • 50
  • 1
  • 9