tmichett / Fedora_Remix

Fedora Linux Remix
4 stars 1 forks source link

Update YAD Script for PXE - Collections #35

Closed tmichett closed 1 year ago

tmichett commented 1 year ago

Ansible playbook doesn't run or do anything as the collections might be missing.

Modify the script to install the Ansible Collections and Roles prior to running the playbook.

tmichett commented 1 year ago

Script to modify

https://github.com/tmichett/Fedora_Remix/blob/main/YAD/scripts/create_pxe_server.sh

tmichett commented 1 year ago

!/bin/bash

USER="$(whoami)" cd /opt/PXEServer/

ansible-galaxy collection install -r collections/requirements.yml -p collections ansible-galaxy install -r roles/requirements.yml -p roles

ansible-playbook Setup_PXE_Server.yml -k

tmichett commented 1 year ago

Tested script on new system