Ansible: How to automate past “Initial setup of CentOS Linux 7” message
I recently came across an annoying issue with CentOS 7 setup. I started with a minimal install, completed my installation(including mate desktop) and rebooted. When I attached to the console of the newly minted VM I discovered it was stuck at a license prompt. To avoid this issue…
systemctl list-unit-files | grep initial
initial-setup-graphical.service disabled
initial-setup-reconfiguration.service disabled
initial-setup-text.service disabled
initial-setup.service disabled
I only had to disable ‘initial-setup-graphical’ to bypass the message.
Ansible Playbook:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
- name: AsteriskPBX Services Configuration remote_user: root hosts: VoiceIP_PBX vars_files: ['vip-vars.yml'] tasks: - name: systemd - Intital Setup Service systemd: name: initial-setup-graphical enabled: no state: stopped |
Obviously you want to change the hosts and vars_file. Have a great day safely ignoring this annoying license!
No Comments »
RSS feed for comments on this post. TrackBack URL