-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(ansible): add common + devops deps (if enabled) with Ansible
It install OS updates, VS Code Server
- Loading branch information
Showing
8 changed files
with
83 additions
and
4 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
--- | ||
# This playbook install the common packages | ||
- hosts: server | ||
become: true | ||
gather_facts: false | ||
|
||
tasks: | ||
- name: Update apt-get repo and cache | ||
apt: update_cache=yes force_apt_get=yes cache_valid_time=3600 | ||
|
||
- name: Upgrade all apt packages | ||
apt: upgrade=dist force_apt_get=yes |
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,15 @@ | ||
#!/bin/bash | ||
|
||
BASEDIR=$(dirname $0) | ||
|
||
# Install the Ansible roles | ||
ansible-galaxy install -r $BASEDIR/roles.yml | ||
|
||
# Install updates | ||
ansible-playbook -i $BASEDIR/../../hosts.yml $BASEDIR/os-updates.yml | ||
|
||
# Install VS Code Server | ||
ansible-playbook -i $BASEDIR/../../hosts.yml $BASEDIR/vscode-server.yml | ||
|
||
# Install the other required packages | ||
# ansible-playbook -i $BASEDIR/../../hosts.yml $BASEDIR/playbook.yml |
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,12 @@ | ||
--- | ||
# This playbook install the common packages | ||
- hosts: server | ||
become: true | ||
gather_facts: false | ||
|
||
roles: | ||
- role: geerlingguy.helm | ||
helm_arch: arm64 | ||
|
||
- role: geerlingguy.docker_arm | ||
docker_install_compose: false |
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,5 @@ | ||
# Docker | ||
- name: geerlingguy.docker | ||
|
||
# Helm | ||
- name: geerlingguy.helm |
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,9 @@ | ||
#!/bin/bash | ||
|
||
BASEDIR=$(dirname $0) | ||
|
||
# Install the Ansible roles | ||
ansible-galaxy install -r $BASEDIR/roles.yml | ||
|
||
# Run the playbook | ||
ansible-playbook -i $BASEDIR/../../hosts.yml $BASEDIR/playbook.yml |
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