Skip to content

Commit

Permalink
UnixPB: Debian Fixes + trailing space fix (adoptium#1052)
Browse files Browse the repository at this point in the history
* UnixPB: Fixed incorrectly named modules

* Unix: Add Deb8 IP config for ansible, fix trailing space
  • Loading branch information
Willsparker authored and Stewart Addison committed Dec 20, 2019
1 parent 94cde4c commit ab2688f
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 3 deletions.
4 changes: 4 additions & 0 deletions ansible/Vagrantfile.Debian8
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ echo "--------------------------------------------------------------------------
echo "*** '$VAGRANT_MOUNT/playbooks/hosts' file for ansible-playbook contains ***"
cat $VAGRANT_MOUNT/playbooks/hosts
echo "---------------------------------------------------------------------------------------"
# Get IPs of the VM, and output to shared folder
ifconfig | grep "inet" | awk '{print $2}' | sed 's/addr://' >> /vagrant/playbooks/AdoptOpenJDK_Unix_Playbook/hosts.tmp
# Put the host machine's IP into the authorised_keys file on the VM
[ -r /vagrant/id_rsa.pub ] && mkdir -p $HOME/.ssh && cat /vagrant/id_rsa.pub >> $HOME/.ssh/authorized_keys
SCRIPT

# 2 = version of configuration file for Vagrant 1.1+ leading up to 2.0.x
Expand Down
2 changes: 1 addition & 1 deletion ansible/playbooks/AdoptOpenJDK_Unix_Playbook/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
###################################
# AdoptOpenJDK - Ansible Playbook #
###################################
# Groups can be passed in as a command-line variable in Ansible playbook.
# Groups can be passed in as a command-line variable in Ansible playbook.
# It can be defined as 'all' or a specific group which the host belongs to.
# For example, it can be 'all' or 'x86' for when a host is in the group 'x86'.
- hosts: "{{ Groups | default('localhost:build:test:!*zos*:!*win*:!*aix*') }}"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
mode: 0440
timeout: 25
validate_certs: no
checksum: sha256:c9b8b1ca18b13e293688cafbd8990c940ca49104dbeefc242e5c3f8de271abdf
retries: 3
delay: 5
register: antContrib_download
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@

# Both repositories needed for gcc/g++-4.8
- name: Add additional repositories for Raspbian Buster
apt-repository: repo={{ item }}
apt_repository: repo={{ item }}
with_items:
- deb-src http://raspbian.raspberrypi.org/raspbian/ buster main contrib non-free rpi
- deb http://mirrordirector.raspbian.org/raspbian/ jessie main contrib non-free rpi
Expand Down Expand Up @@ -89,7 +89,7 @@
tags: build_tools

- name: Install GCC G++ on Raspian Buster
packages: "name={{ item }} state=latest"
package: "name={{ item }} state=latest"
with_items:
- gcc-4.8
- g++-4.8
Expand Down

0 comments on commit ab2688f

Please sign in to comment.