mirror of
https://github.com/iiab/iiab.git
synced 2025-02-15 04:32:11 +00:00
change from /etc/apt/sources.list.d/ansible.list to iiab-ansible.list for Debian & Raspbian
This commit is contained in:
parent
76a17f6f8c
commit
77e0820e57
1 changed files with 3 additions and 3 deletions
|
@ -43,9 +43,9 @@ if [ ! `command -v ansible-playbook` ]; then # "command -v" is POSIX compliant
|
||||||
if ( ! grep -qi ansible /etc/apt/sources.list) && [ ! -f /etc/apt/sources.list.d/ansible ]; then
|
if ( ! grep -qi ansible /etc/apt/sources.list) && [ ! -f /etc/apt/sources.list.d/ansible ]; then
|
||||||
apt -y install dirmngr python-pip python-setuptools python-wheel patch
|
apt -y install dirmngr python-pip python-setuptools python-wheel patch
|
||||||
#echo "deb http://ppa.launchpad.net/ansible/ansible/ubuntu xenial main" \
|
#echo "deb http://ppa.launchpad.net/ansible/ansible/ubuntu xenial main" \
|
||||||
# >> /etc/apt/sources.list.d/ansible.list
|
# >> /etc/apt/sources.list.d/iiab-ansible.list
|
||||||
echo "deb http://ppa.launchpad.net/ansible/ansible-2.4/ubuntu xenial main" \
|
echo "deb http://ppa.launchpad.net/ansible/ansible-2.4/ubuntu xenial main" \
|
||||||
>> /etc/apt/sources.list.d/ansible.list
|
>> /etc/apt/sources.list.d/iiab-ansible.list
|
||||||
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 93C4A3FD7BB9C367
|
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 93C4A3FD7BB9C367
|
||||||
fi
|
fi
|
||||||
# FOUND="true"
|
# FOUND="true"
|
||||||
|
@ -75,7 +75,7 @@ else
|
||||||
exit 0
|
exit 0
|
||||||
#fi
|
#fi
|
||||||
#if [[ `grep -qi ansible /etc/apt/sources.list` ]] || [ -f /etc/apt/sources.list.d/ansible*.list ]; then
|
#if [[ `grep -qi ansible /etc/apt/sources.list` ]] || [ -f /etc/apt/sources.list.d/ansible*.list ]; then
|
||||||
elif (grep -qi ansible /etc/apt/sources.list) || (ls /etc/apt/sources.list.d/ansible*.list >/dev/null 2>&1) ; then
|
elif (grep -qi ansible /etc/apt/sources.list) || (ls /etc/apt/sources.list.d/*ansible*.list >/dev/null 2>&1) ; then
|
||||||
#echo "Ansible repo(s) found within /etc/apt/sources.list*"
|
#echo "Ansible repo(s) found within /etc/apt/sources.list*"
|
||||||
echo -e '\nANSIBLE REPO(S) FOUND WITHIN /etc/apt/sources.list AND/OR /etc/apt/sources.list.d/ansible*.list -- MUST CONTAIN LINE "deb http://ppa.launchpad.net/ansible/ansible-2.4/ubuntu xenial main" IF YOU WANT THE LATEST ANSIBLE 2.4.x -- AND REMOVE ALL SIMILAR LINES -- then re-run this script.\n'
|
echo -e '\nANSIBLE REPO(S) FOUND WITHIN /etc/apt/sources.list AND/OR /etc/apt/sources.list.d/ansible*.list -- MUST CONTAIN LINE "deb http://ppa.launchpad.net/ansible/ansible-2.4/ubuntu xenial main" IF YOU WANT THE LATEST ANSIBLE 2.4.x -- AND REMOVE ALL SIMILAR LINES -- then re-run this script.\n'
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in a new issue