You've already forked ansible-role-common
Compare commits
6 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| e5e3f88413 | |||
| 1fedea38e3 | |||
| 797824ad76 | |||
| f80471ad66 | |||
| f732c1dd54 | |||
| 909e25687d |
15
.github/workflows/ci.yml
vendored
15
.github/workflows/ci.yml
vendored
@@ -5,7 +5,6 @@ on:
|
|||||||
- "**"
|
- "**"
|
||||||
tags:
|
tags:
|
||||||
- "!**"
|
- "!**"
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
lint:
|
lint:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
@@ -61,20 +60,6 @@ jobs:
|
|||||||
- molecule
|
- molecule
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- uses: actions/setup-go@v5
|
|
||||||
with:
|
|
||||||
go-version: '1.22'
|
|
||||||
- name: Install gitea provider for Go Semantic Release
|
|
||||||
run: |
|
|
||||||
mkdir -p .semrel/$(go env GOOS)_$(go env GOARCH)/provider-gitea/${GITEA_PROVIDER_VER}/ && \
|
|
||||||
wget https://github.com/cybercinch/go-semantic-release-provider-gitea/releases/download/v${GITEA_PROVIDER_VER}/go-semantic-release-provider-gitea_v${GITEA_PROVIDER_VER}_linux_amd64 \
|
|
||||||
-O .semrel/$(go env GOOS)_$(go env GOARCH)/provider-gitea/${GITEA_PROVIDER_VER}/gitea && \
|
|
||||||
chmod a+x .semrel/$(go env GOOS)_$(go env GOARCH)/provider-gitea/${GITEA_PROVIDER_VER}/gitea
|
|
||||||
env:
|
|
||||||
GITEA_PROVIDER_VER: 1.0.11
|
|
||||||
- run: |
|
|
||||||
echo "github repo: ${GITHUB_REPOSITORY}"
|
|
||||||
echo "env vars: $(env)"
|
|
||||||
- uses: go-semantic-release/action@v1
|
- uses: go-semantic-release/action@v1
|
||||||
with:
|
with:
|
||||||
custom-arguments: --provider=gitea
|
custom-arguments: --provider=gitea
|
||||||
|
|||||||
@@ -1,6 +1,8 @@
|
|||||||
---
|
---
|
||||||
- name: Converge
|
- name: Converge
|
||||||
hosts: all
|
hosts: all
|
||||||
|
vars:
|
||||||
|
ansible_remote_tmp: /tmp/.ansible/tmp
|
||||||
tasks:
|
tasks:
|
||||||
- name: "Include common"
|
- name: "Include common"
|
||||||
include_role:
|
include_role:
|
||||||
|
|||||||
@@ -8,7 +8,10 @@ platforms:
|
|||||||
image: "cybercinch/docker-${MOLECULE_DISTRO:-almalinux8}-ansible:latest"
|
image: "cybercinch/docker-${MOLECULE_DISTRO:-almalinux8}-ansible:latest"
|
||||||
command: ${MOLECULE_DOCKER_COMMAND:-""}
|
command: ${MOLECULE_DOCKER_COMMAND:-""}
|
||||||
volumes:
|
volumes:
|
||||||
- /sys/fs/cgroup:/sys/fs/cgroup:rw
|
- /sys/fs/cgroup:/sys/fs/cgroup:rw
|
||||||
|
- /run
|
||||||
|
- /run/lock
|
||||||
|
- /tmp
|
||||||
cgroupns_mode: host
|
cgroupns_mode: host
|
||||||
privileged: true
|
privileged: true
|
||||||
pre_build_image: true
|
pre_build_image: true
|
||||||
|
|||||||
@@ -2,13 +2,13 @@
|
|||||||
# tasks file for common role
|
# tasks file for common role
|
||||||
- include_tasks: networking.yml
|
- include_tasks: networking.yml
|
||||||
|
|
||||||
- name: Ensure common packages (RHEL)
|
# - name: Ensure common packages (RHEL)
|
||||||
yum:
|
# yum:
|
||||||
name: "{{ common_packages }}"
|
# name: "{{ common_packages }}"
|
||||||
state: present
|
# state: present
|
||||||
enablerepo: epel
|
# enablerepo: epel
|
||||||
when: ansible_distribution != 'OracleLinux'
|
# when: ansible_distribution != 'OracleLinux'
|
||||||
tags: packages
|
# tags: packages
|
||||||
|
|
||||||
- name: Ensure common packages (OracleLinux)
|
- name: Ensure common packages (OracleLinux)
|
||||||
yum:
|
yum:
|
||||||
|
|||||||
@@ -97,5 +97,8 @@
|
|||||||
- /etc/hosts
|
- /etc/hosts
|
||||||
loop_control:
|
loop_control:
|
||||||
loop_var: perm_config
|
loop_var: perm_config
|
||||||
|
when: >
|
||||||
|
ansible_virtualization_type != "docker"
|
||||||
|
and ansible_virtualization_type != "container"
|
||||||
changed_when: false
|
changed_when: false
|
||||||
tags: dns
|
tags: dns
|
||||||
|
|||||||
Reference in New Issue
Block a user