Adding local ppa-ansible to clients.
This commit is contained in:
parent
34a6cf538f
commit
a4279e29fd
@ -5,5 +5,16 @@
|
|||||||
template:
|
template:
|
||||||
src: sources.list
|
src: sources.list
|
||||||
dest: /etc/apt/sources.list
|
dest: /etc/apt/sources.list
|
||||||
backup: yes
|
|
||||||
when: ansible_product_name != "VirtualBox"
|
when: ansible_product_name != "VirtualBox"
|
||||||
|
|
||||||
|
- name: Adding/changing ansible ppa local mirror
|
||||||
|
get_url:
|
||||||
|
url: "http://{{ serverfqdn }}/ks/ansible-ansible-trusty.list"
|
||||||
|
dest: /etc/apt/sources.list.d/ansible-ansible-trusty.list
|
||||||
|
owner: root
|
||||||
|
group: root
|
||||||
|
mode: 0644
|
||||||
|
when: ansible_product_name != "VirtualBox"
|
||||||
|
|
||||||
|
- name: Updating package database
|
||||||
|
apt: update_cache=yes
|
||||||
|
2
roles/base/templates/ansible-ansible-trusty.list
Normal file
2
roles/base/templates/ansible-ansible-trusty.list
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
deb http://{{ mirrorpath }}ppa.launchpad.net/ansible/ansible/ubuntu trusty main
|
||||||
|
# deb-src http://{{ mirrorpath }}ppa.launchpad.net/ansible/ansible/ubuntu trusty main
|
Loading…
x
Reference in New Issue
Block a user