Add PPA for Ansible 2.6

so ansible_virtualization_type and ansible_virtualization_role are
always defined. This ist important on older Hardware (e.g. AMD64 3000+).
This commit is contained in:
Alexander Grothe 2018-09-05 12:23:30 +02:00
parent 4c78cdf79a
commit f6f5dc59ca
3 changed files with 487 additions and 478 deletions

File diff suppressed because it is too large Load Diff

View File

@ -141,14 +141,17 @@ We use a callback to generate tags for all roles autmatically:
** Install script for local usage
#+BEGIN_SRC shell :tangle install-yavdr.sh :shebang "#!/bin/bash"
set -e
if (( $EUID != 0 )); then
echo "This script must be run using sudo -H or as root"
exit
fi
apt-get -y install software-properties-common
# update packages
apt-get update
apt update
apt -y install software-properties-common
add-apt-repository -y ppa:ansible/ansible-2.6
# install required packages
apt-get -y install --no-install-recommends ansible python-jmespath
@ -6113,6 +6116,7 @@ def collect_nvidia_data():
def output_data(data, write_edids=True):
result = {}
if data:
modes = []
for _, screen_data in data.items():
@ -6124,7 +6128,6 @@ def output_data(data, write_edids=True):
for refreshrate in refreshrates:
modes.append(Mode(connector, resolution, refreshrate))
if modes:
result = {}
try:
gpu_name, bus_id = collect_nvidia_data()
except ValueError:

View File

@ -1,12 +1,15 @@
#!/bin/bash
set -e
if (( $EUID != 0 )); then
echo "This script must be run using sudo -H or as root"
exit
fi
apt-get -y install software-properties-common
# update packages
apt-get update
apt update
apt -y install software-properties-common
add-apt-repository -y ppa:ansible/ansible-2.6
# install required packages
apt-get -y install --no-install-recommends ansible python-jmespath