Add install script for headless installation

This commit is contained in:
Alexander Grothe 2018-12-31 19:42:02 +01:00
parent b4afe5129f
commit 21710fc62b
4 changed files with 535 additions and 476 deletions

File diff suppressed because it is too large Load Diff

View File

@ -176,7 +176,7 @@ sudo ./install-yavdr.sh
We use a callback to generate tags for all roles autmatically:
#+INCLUDE: "ansible.cfg" src conf
** Install script for local usage
** Install scripts for local usage
:PROPERTIES:
:ID: c41eda06-8a67-478e-ae66-cc11f764f279
:END:
@ -197,6 +197,26 @@ apt-get -y install --no-install-recommends ansible python-jmespath
# TODO: run ansible on local host
ansible-playbook yavdr07.yml -b -i 'localhost_inventory' --connection=local --tags="all" --extra-vars "first_run=True"
dpkg-reconfigure libdvd-pkg
#+END_SRC
#+BEGIN_SRC shell :tangle install-yavdr-headless.sh :shebang "#!/bin/bash"
set -e
if (( $EUID != 0 )); then
echo "This script must be run using sudo -H or as root"
exit
fi
# update packages
apt update
apt -y install software-properties-common
add-apt-repository -y ppa:ansible/ansible-2.7
# install required packages
apt-get -y install --no-install-recommends ansible python-jmespath
# TODO: run ansible on local host
ansible-playbook yavdr07-headless.yml -b -i 'localhost_inventory' --connection=local --tags="all" --extra-vars "first_run=True"
#+END_SRC
* Playbooks
:PROPERTIES:

17
install-yavdr-headless.sh Executable file
View File

@ -0,0 +1,17 @@
#!/bin/bash
set -e
if (( $EUID != 0 )); then
echo "This script must be run using sudo -H or as root"
exit
fi
# update packages
apt update
apt -y install software-properties-common
add-apt-repository -y ppa:ansible/ansible-2.7
# install required packages
apt-get -y install --no-install-recommends ansible python-jmespath
# TODO: run ansible on local host
ansible-playbook yavdr07-headless.yml -b -i 'localhost_inventory' --connection=local --tags="all" --extra-vars "first_run=True"

View File

@ -15,3 +15,4 @@ apt-get -y install --no-install-recommends ansible python-jmespath
# TODO: run ansible on local host
ansible-playbook yavdr07.yml -b -i 'localhost_inventory' --connection=local --tags="all" --extra-vars "first_run=True"
dpkg-reconfigure libdvd-pkg