-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
82 additions
and
15 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 |
---|---|---|
|
@@ -39,7 +39,6 @@ skip_list: | |
- risky-file-permissions | ||
|
||
mock_roles: | ||
- geerlingguy.docker | ||
- autoscaling | ||
|
||
mock_modules: | ||
|
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,75 @@ | ||
--- | ||
- name: Update and upgrade all packages to the latest version | ||
ansible.builtin.apt: | ||
update_cache: true | ||
upgrade: dist | ||
cache_valid_time: 3600 | ||
|
||
- name: Install required packages | ||
ansible.builtin.apt: | ||
pkg: | ||
- apt-transport-https | ||
- ca-certificates | ||
- curl | ||
- gnupg | ||
- software-properties-common | ||
|
||
- name: Create directory for Docker's GPG key | ||
ansible.builtin.file: | ||
path: /etc/apt/keyrings | ||
state: directory | ||
mode: "0755" | ||
|
||
- name: Add Docker's official GPG key | ||
ansible.builtin.apt_key: | ||
url: https://download.docker.com/linux/ubuntu/gpg | ||
keyring: /etc/apt/keyrings/docker.gpg | ||
state: present | ||
|
||
- name: Print architecture variables | ||
ansible.builtin.debug: | ||
msg: "Architecture: {{ ansible_architecture }}, Codename: {{ ansible_lsb.codename }}" | ||
|
||
- name: Add Docker repository | ||
ansible.builtin.apt_repository: | ||
repo: >- | ||
deb [arch={{ arch_mapping[ansible_architecture] | default(ansible_architecture) }} | ||
signed-by=/etc/apt/keyrings/docker.gpg] | ||
https://download.docker.com/linux/ubuntu {{ ansible_lsb.codename }} stable | ||
filename: docker | ||
state: present | ||
vars: | ||
arch_mapping: | ||
x86_64: amd64 | ||
|
||
- name: Install Docker and related packages | ||
ansible.builtin.apt: | ||
name: "{{ item }}" | ||
state: present | ||
update_cache: true | ||
with_items: | ||
- docker-ce | ||
- docker-ce-cli | ||
- containerd.io | ||
- docker-buildx-plugin | ||
- docker-compose-plugin | ||
|
||
- name: Add Docker group | ||
ansible.builtin.group: | ||
name: docker | ||
state: present | ||
|
||
- name: Add user to Docker group | ||
ansible.builtin.user: | ||
name: "{{ ansible_user }}" | ||
groups: docker | ||
append: true | ||
|
||
- name: Enable and start Docker services | ||
ansible.builtin.systemd: | ||
name: "{{ item }}" | ||
enabled: true | ||
state: started | ||
with_items: | ||
- docker.service | ||
- containerd.service |
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
openstacksdk==4.0.0 | ||
openstacksdk==4.0.1 | ||
ansible==10.4.0 | ||
python-openstackclient==7.1.2 | ||
python-openstackclient==7.1.3 | ||
paramiko==3.5.0 | ||
passlib==1.7.4 |
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
--- | ||
vscode_vars: | ||
INSTALL_SCRIPT_URL: https://code-server.dev/install.sh | ||
VSCODE_VERSION: v4.95.2 | ||
VSCODE_VERSION: v4.95.3 | ||
DEFAULT_USER: ubuntu | ||
PORT: 3000 |