Skip to content

Commit c719cb9

Browse files
committed
Initial commit
0 parents  commit c719cb9

File tree

8 files changed

+141
-0
lines changed

8 files changed

+141
-0
lines changed

README.md

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
Role Name
2+
=========
3+
4+
A brief description of the role goes here.
5+
6+
Requirements
7+
------------
8+
9+
Any pre-requisites that may not be covered by Ansible itself or the role should be mentioned here. For instance, if the role uses the EC2 module, it may be a good idea to mention in this section that the boto package is required.
10+
11+
Role Variables
12+
--------------
13+
14+
A description of the settable variables for this role should go here, including any variables that are in defaults/main.yml, vars/main.yml, and any variables that can/should be set via parameters to the role. Any variables that are read from other roles and/or the global scope (ie. hostvars, group vars, etc.) should be mentioned here as well.
15+
16+
Dependencies
17+
------------
18+
19+
A list of other roles hosted on Galaxy should go here, plus any details in regards to parameters that may need to be set for other roles, or variables that are used from other roles.
20+
21+
Example Playbook
22+
----------------
23+
24+
Including an example of how to use your role (for instance, with variables passed in as parameters) is always nice for users too:
25+
26+
- hosts: servers
27+
roles:
28+
- { role: username.rolename, x: 42 }
29+
30+
License
31+
-------
32+
33+
BSD
34+
35+
Author Information
36+
------------------
37+
38+
An optional section for the role authors to include contact information, or a website (HTML is not allowed).

defaults/main.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
---
2+
# defaults file for containerd

handlers/main.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
---
2+
# handlers file for containerd

meta/main.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
galaxy_info:
2+
author: your name
3+
description: your role description
4+
company: your company (optional)
5+
6+
# If the issue tracker for your role is not on github, uncomment the
7+
# next line and provide a value
8+
# issue_tracker_url: http://example.com/issue/tracker
9+
10+
# Choose a valid license ID from https://spdx.org - some suggested licenses:
11+
# - BSD-3-Clause (default)
12+
# - MIT
13+
# - GPL-2.0-or-later
14+
# - GPL-3.0-only
15+
# - Apache-2.0
16+
# - CC-BY-4.0
17+
license: license (GPL-2.0-or-later, MIT, etc)
18+
19+
min_ansible_version: 2.1
20+
21+
# If this a Container Enabled role, provide the minimum Ansible Container version.
22+
# min_ansible_container_version:
23+
24+
galaxy_tags: []
25+
# List tags for your role here, one per line. A tag is a keyword that describes
26+
# and categorizes the role. Users find roles by searching for tags. Be sure to
27+
# remove the '[]' above, if you add tags to this list.
28+
#
29+
# NOTE: A tag is limited to a single word comprised of alphanumeric characters.
30+
# Maximum 20 tags per role.
31+
32+
dependencies: []
33+
# List your role dependencies here, one per line. Be sure to remove the '[]' above,
34+
# if you add dependencies to this list.

tasks/arch.yaml

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
---
2+
# tasks file for containerd
3+
- name: Update facts
4+
ansible.builtin.setup:
5+
6+
- name: Install Docker for Debian family
7+
when:
8+
- ansible_os_family == "Arch Linux"
9+
block:
10+
- name: Install kubeadm kubelet
11+
community.general.pacman:
12+
name:
13+
- kubectl
14+
- k9s
15+
- helm
16+
state: present
17+
- name: Install kubeadm kubelet
18+
community.general.pacman:
19+
name:
20+
- kubeadm
21+
- kubelet
22+
state: present
23+
- name: Install paru on Arch Linux
24+
block:
25+
- name: Ensure base-devel is installed
26+
community.general.pacman:
27+
name: base-devel
28+
state: present
29+
update_cache: true
30+
31+
- name: Clone the paru AUR repository
32+
ansible.builtin.git:
33+
repo: "https://aur.archlinux.org/paru.git"
34+
dest: /tmp/paru
35+
clone: true
36+
update: false
37+
version: main
38+
39+
- name: Build and install paru
40+
ansible.builtin.command: "makepkg -si --noconfirm"
41+
args:
42+
chdir: /tmp/paru
43+
register: paru_install
44+
changed_when: "'nothing to do' not in paru_install.stdout"
45+
46+
- name: Clean up paru source directory
47+
ansible.builtin.file:
48+
path: /tmp/paru
49+
state: absent
50+
when: paru_install is succeeded
51+
# - name: Install package from AUR using a Pacman compatible AUR helper
52+
# community.general.pacman:
53+
# name: paru
54+
# state: present
55+
# executable: paru
56+
# extra_args: --builddir /var/cache/paru

tests/inventory

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
localhost
2+

tests/test.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
- hosts: localhost
3+
remote_user: root
4+
roles:
5+
- containerd

vars/main.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
---
2+
# vars file for containerd

0 commit comments

Comments
 (0)