Add install script for headless installation
This commit is contained in:
parent
b4afe5129f
commit
21710fc62b
971
Manual.html
971
Manual.html
File diff suppressed because it is too large
Load Diff
22
Manual.org
22
Manual.org
@ -176,7 +176,7 @@ sudo ./install-yavdr.sh
|
|||||||
We use a callback to generate tags for all roles autmatically:
|
We use a callback to generate tags for all roles autmatically:
|
||||||
#+INCLUDE: "ansible.cfg" src conf
|
#+INCLUDE: "ansible.cfg" src conf
|
||||||
|
|
||||||
** Install script for local usage
|
** Install scripts for local usage
|
||||||
:PROPERTIES:
|
:PROPERTIES:
|
||||||
:ID: c41eda06-8a67-478e-ae66-cc11f764f279
|
:ID: c41eda06-8a67-478e-ae66-cc11f764f279
|
||||||
:END:
|
:END:
|
||||||
@ -197,6 +197,26 @@ apt-get -y install --no-install-recommends ansible python-jmespath
|
|||||||
|
|
||||||
# TODO: run ansible on local host
|
# TODO: run ansible on local host
|
||||||
ansible-playbook yavdr07.yml -b -i 'localhost_inventory' --connection=local --tags="all" --extra-vars "first_run=True"
|
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
|
#+END_SRC
|
||||||
* Playbooks
|
* Playbooks
|
||||||
:PROPERTIES:
|
:PROPERTIES:
|
||||||
|
17
install-yavdr-headless.sh
Executable file
17
install-yavdr-headless.sh
Executable 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"
|
@ -15,3 +15,4 @@ apt-get -y install --no-install-recommends ansible python-jmespath
|
|||||||
|
|
||||||
# TODO: run ansible on local host
|
# TODO: run ansible on local host
|
||||||
ansible-playbook yavdr07.yml -b -i 'localhost_inventory' --connection=local --tags="all" --extra-vars "first_run=True"
|
ansible-playbook yavdr07.yml -b -i 'localhost_inventory' --connection=local --tags="all" --extra-vars "first_run=True"
|
||||||
|
dpkg-reconfigure libdvd-pkg
|
||||||
|
Loading…
Reference in New Issue
Block a user