Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ansible: use gcc 4.9 on Ubuntu 14.04 #797

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 8 additions & 9 deletions ansible/roles/baselayout/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,15 +59,14 @@
- "{{ packages[os|stripversion]|default('[]') }}"
- "{{ common_packages|default('[]') }}"

#- name: update package alteratives
# when: os == debian7
# alterantives:
# loop_control:
# loop_var: gcc
# with_items:
# - gcc
# - g++
# - cc
- name: update package alternatives
when: os == "ubuntu1404"
alternatives: link=/usr/bin/{{ gcc }} name={{ gcc }} path=/usr/bin/{{ gcc }}-4.9
loop_control:
loop_var: gcc
with_items:
- gcc
- g++

- name: remove fortune from login shells
when: os|stripversion == 'freebsd'
Expand Down
13 changes: 13 additions & 0 deletions ansible/roles/baselayout/tasks/partials/repo/ubuntu1404.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
---

#
# add PPA for gcc 4.9
#


- name: "repo : add Ubuntu Toolchain PPA"
apt_repository:
repo: 'ppa:ubuntu-toolchain-r/test'
state: present
update_cache: yes
register: has_updated_package_repo

This comment was marked as off-topic.

This comment was marked as off-topic.

2 changes: 2 additions & 0 deletions ansible/roles/baselayout/vars/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -115,5 +115,7 @@ packages: {

ubuntu1404: [
'ntp',
'g++-4.9',
'gcc-4.9',
]
}