-
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
15 changed files
with
65 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,4 +4,5 @@ | |
become: yes | ||
roles: | ||
# - common | ||
- hashicorp | ||
# - hashicorp | ||
- docker |
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,2 @@ | ||
deb [arch=amd64] ttps://download.docker.com/linux/debian bullseye main | ||
deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable |
Empty file.
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 @@ | ||
- include: services.yml |
Empty file.
Empty file.
Empty file.
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,14 @@ | ||
- name: Install docker packages | ||
apt: | ||
update_cache: yes | ||
name: "{{item}}" | ||
state: present | ||
|
||
with_items: | ||
- ca-certificates | ||
- curl | ||
- gnupg | ||
- lsb-release | ||
- apt-transport-https | ||
register: dependencies | ||
|
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,4 @@ | ||
- include: dependencies.yml | ||
- include: repository.yml | ||
- include: config.yml | ||
- include: post.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
- name: Ensure group docker exists | ||
ansible.builtin.group: | ||
name: docker | ||
state: present | ||
|
||
- name: Adding existing user kakashi to group sudo | ||
user: | ||
name: kakashi | ||
groups: docker | ||
append: yes | ||
# become: 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,24 @@ | ||
- name: import the docker apt key | ||
apt_key: | ||
url: https://download.docker.com/linux/ubuntu/gpg | ||
state: present | ||
become: true | ||
|
||
- name: Add docker repository into sources list | ||
ansible.builtin.apt_repository: | ||
repo: "deb [arch=amd64] https://download.docker.com/linux/debian {{ansible_distribution_release}} stable" | ||
state: present | ||
filename: docker | ||
|
||
- name: Install Docker Packages | ||
apt: | ||
update_cache: yes | ||
name: "{{item}}" | ||
state: present | ||
become_user: root | ||
with_items: | ||
- docker-ce | ||
- docker-ce-cli | ||
- containerd.io | ||
register: packages | ||
|
Empty file.
Empty file.
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,3 +1,3 @@ | ||
# - include: dependencies.yml | ||
- include: dependencies.yml | ||
- include: repository.yml | ||
- include: config.yml |