#ansible #rancheros
#ansible #rancheros
Вопрос:
Я пытаюсь запустить плейбуки на сервере ranchesOS.
- hosts: rancher
tasks:
- name: Insert/Update eth0 configuration stanza in /etc/network/interfaces
blockinfile:
path: ros.yaml
block: |
#cloud-config
rancher:
console: ubuntu
runcmd:
- [ apt-get, install, -y, curl ]
- [ apt-get, install, -y, zip ]
- name: merge
become: yes
command: ros config merge -i ros.yaml
- name: Reboot immediately if there was a change.
shell: "sleep 5 amp;amp; reboot"
register: reboot
- debug:
msg=reboot.stdout
- name: Wait for the reboot to complete if there was a change.
become: yes
wait_for_connection:
connect_timeout: 20
sleep: 5
delay: 5
timeout: 300
во время запуска этот плейбук выполняется успешно, но сервер не запускается.
Комментарии:
1. «сервер не запускается». … но вместо этого … ? и если плейбук выполнен успешно, тогда ваш вопрос относится к ServerFault.com потому что теперь это вопрос «что не так с моей ros-машиной», а не «что не так с ansible».
2.Кроме того, всегда трудно ответить на эти вопросы SO, но, как написано, ваш облачный yaml выглядит подозрительно для меня, учитывая нулевой
rancher:
ключ