-
Notifications
You must be signed in to change notification settings - Fork 331
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Ansible provisioner and playbook for Ubuntu 20.04 + 18.04 (#109)
Initial introduction of Ansible use for Ubuntu : - Adds `ansible-local` provisioner to Ubuntu builds. - Adde an initial playbook to remove steps from the `shell` build's provisioner scripts. - Removes steps in the `ubuntu*.sh` scripts for which Ansible now performs. More to come for #54. Stay tuned!
- Loading branch information
Showing
5 changed files
with
81 additions
and
69 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
--- | ||
|
||
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE | ||
# WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR | ||
# COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR | ||
# OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | ||
|
||
- hosts: localhost | ||
gather_facts: yes | ||
become: true | ||
tasks: | ||
- name: System Details | ||
debug: msg="{{ item }}" | ||
with_items: | ||
- "{{ ansible_distribution }}" | ||
|
||
- block: # Ubuntu Distributions | ||
- name: Update Cache and Upgrade Packages | ||
apt: | ||
name: "*" | ||
state: latest | ||
update_cache: yes | ||
force_apt_get: true | ||
|
||
- name: Install Additional Packages | ||
apt: | ||
name: | ||
- bash-completion | ||
- curl | ||
- wget | ||
- git | ||
- net-tools | ||
- unzip | ||
- ca-certificates | ||
state: latest | ||
|
||
- name: Install CA Certificate | ||
copy: | ||
src: /tmp/root-ca.crt | ||
dest: /usr/local/share/ca-certificates/ | ||
owner: root | ||
group: root | ||
mode: 0644 | ||
notify: | ||
- Ubuntu - Update Trusted CA | ||
when: | ||
- ansible_distribution == "Ubuntu" | ||
|
||
handlers: | ||
- name: Ubuntu - Update Trusted CA | ||
shell: /usr/sbin/update-ca-certificates |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters