Skip to content

Commit 9c9dfe6

Browse files
committed
Require Python 3.13 until Ansible 13 is released.
1 parent 69d065f commit 9c9dfe6

File tree

3 files changed

+39
-3
lines changed

3 files changed

+39
-3
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
- name: Set up Python 3.
2727
uses: actions/setup-python@v5
2828
with:
29-
python-version: '3.x'
29+
python-version: '3.13' # Can't go to 3.14+ until Ansible 13.x
3030

3131
- name: Install test dependencies.
3232
run: pip3 install yamllint
@@ -53,7 +53,7 @@ jobs:
5353
- name: Set up Python 3.
5454
uses: actions/setup-python@v5
5555
with:
56-
python-version: '3.x'
56+
python-version: '3.13' # Can't go to 3.14+ until Ansible 13.x
5757

5858
- name: Install test dependencies.
5959
run: pip3 install ansible molecule molecule-plugins[docker] docker

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
- name: Set up Python 3.
3030
uses: actions/setup-python@v5
3131
with:
32-
python-version: '3.x'
32+
python-version: '3.13' # Can't go to 3.14+ until Ansible 13.x
3333

3434
- name: Install Ansible.
3535
run: pip3 install ansible-core
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
---
2+
# Include variables and define needed variables.
3+
- name: Include OS-specific variables.
4+
include_vars: "{{ ansible_os_family }}.yml"
5+
6+
- name: Include overrides specific to Fedora.
7+
include_vars: Fedora.yml
8+
when:
9+
- ansible_os_family == 'RedHat'
10+
- ansible_distribution == "Fedora"
11+
12+
# Setup/install tasks.
13+
- include_tasks: setup-RedHat.yml
14+
when: ansible_os_family == 'RedHat'
15+
16+
- include_tasks: setup-Debian.yml
17+
when: ansible_os_family == 'Debian'
18+
19+
- name: Ensure directories to export exist
20+
file: # noqa 208
21+
path: "{{ item }}"
22+
state: directory
23+
with_items: "{{ nfs_exports | map('split') | map('first') | unique }}"
24+
25+
- name: Copy exports file.
26+
template:
27+
src: exports.j2
28+
dest: /etc/exports
29+
owner: root
30+
group: root
31+
mode: 0644
32+
notify: reload nfs
33+
34+
- name: Ensure nfs is running.
35+
service: "name={{ nfs_server_daemon }} state=started enabled=yes"
36+
when: nfs_exports|length > 0

0 commit comments

Comments
 (0)