aboutsummaryrefslogtreecommitdiff
path: root/roles/cephadm
diff options
context:
space:
mode:
authorMichal Nasiadka <mnasiadka@gmail.com>2026-03-23 11:38:54 +0100
committerMichal Nasiadka <mnasiadka@gmail.com>2026-03-24 05:36:25 +0000
commite3784e9ce19cd45ad16a1f8d1fc773d2aad83ea8 (patch)
tree00ac1d5460c7f121c43d59b2589579c4e7124cf0 /roles/cephadm
parentd95eddb592c59bd21b89abe3cf162aa1f753685b (diff)
downloadkolla-ansible-e3784e9ce19cd45ad16a1f8d1fc773d2aad83ea8.tar.gz
kolla-ansible-e3784e9ce19cd45ad16a1f8d1fc773d2aad83ea8.zip
ansible-lint: Fix fqcn[actions-core] for roles/cephadm
Change-Id: Ib2fd85b4c392266d718508eb8442dd7b6062e4bd Signed-off-by: Michal Nasiadka <mnasiadka@gmail.com>
Diffstat (limited to 'roles/cephadm')
-rw-r--r--roles/cephadm/tasks/main.yml18
-rw-r--r--roles/cephadm/tasks/pkg_debian.yml6
-rw-r--r--roles/cephadm/tasks/pkg_redhat.yml8
3 files changed, 16 insertions, 16 deletions
diff --git a/roles/cephadm/tasks/main.yml b/roles/cephadm/tasks/main.yml
index 5abf30a38..9bcaeb55f 100644
--- a/roles/cephadm/tasks/main.yml
+++ b/roles/cephadm/tasks/main.yml
@@ -1,9 +1,9 @@
---
- name: Include package installation
- include_tasks: pkg_{{ ansible_os_family | lower }}.yml
+ ansible.builtin.include_tasks: pkg_{{ ansible_os_family | lower }}.yml
- name: Ensure /etc/ceph exists
- file:
+ ansible.builtin.file:
path: /etc/ceph
state: directory
mode: "0755"
@@ -19,7 +19,7 @@
register: cephadm_ssh_key
- name: Save public key
- copy:
+ ansible.builtin.copy:
content: "{{ cephadm_ssh_key.public_key }}"
dest: /etc/ceph/cephadm.pub
mode: "0644"
@@ -38,7 +38,7 @@
- name: Bootstrap cephadm
vars:
mon_ip: "{{ hostvars[inventory_hostname]['ansible_' + api_interface_name | replace('-', '_')].ipv4.address }}"
- command:
+ ansible.builtin.command:
cmd: >
cephadm
--docker
@@ -57,25 +57,25 @@
- name: Get ceph fsid
vars:
regexp: 'Cluster fsid: (.*)'
- set_fact:
+ ansible.builtin.set_fact:
ceph_fsid: "{{ cephadm_bootstrap_output.stdout | regex_search(regexp, '\\1') | first }}"
- name: Template out cluster spec
- template:
+ ansible.builtin.template:
src: templates/cephadm.yml.j2
dest: "/var/run/ceph/{{ ceph_fsid }}/cluster.yml"
mode: "0600"
become: true
- name: Template out command spec
- template:
+ ansible.builtin.template:
src: templates/commands.sh.j2
dest: "/var/run/ceph/{{ ceph_fsid }}/commands.sh"
mode: "0600"
become: true
- name: Run commands
- command:
+ ansible.builtin.command:
cmd: >
cephadm shell --
bash -x /var/run/ceph/commands.sh
@@ -96,7 +96,7 @@
[global]
fsid = {{ ceph_fsid }}
mon_host = {{ _mon_host | join(", ") }}
- copy:
+ ansible.builtin.copy:
content: "{{ ceph_conf_fixed }}"
dest: "/etc/ceph/ceph.conf.fixed"
mode: "0644"
diff --git a/roles/cephadm/tasks/pkg_debian.yml b/roles/cephadm/tasks/pkg_debian.yml
index 92dd08221..be81322b7 100644
--- a/roles/cephadm/tasks/pkg_debian.yml
+++ b/roles/cephadm/tasks/pkg_debian.yml
@@ -1,21 +1,21 @@
---
- name: Ensure apt sources list directory exists
become: true
- file:
+ ansible.builtin.file:
path: /etc/apt/sources.list.d
state: directory
recurse: true
- name: Enable Ceph apt repository
become: true
- apt_repository:
+ ansible.builtin.apt_repository:
repo: "{{ cephadm_ceph_apt_repo }}"
filename: ceph
when: not cephadm_use_package_from_distribution | bool
- name: Install cephadm
become: true
- apt:
+ ansible.builtin.apt:
name:
- cephadm
- python3-jinja2
diff --git a/roles/cephadm/tasks/pkg_redhat.yml b/roles/cephadm/tasks/pkg_redhat.yml
index 9f679c9f1..459370a43 100644
--- a/roles/cephadm/tasks/pkg_redhat.yml
+++ b/roles/cephadm/tasks/pkg_redhat.yml
@@ -1,20 +1,20 @@
---
- name: Ensure yum repos directory exists
become: true
- file:
+ ansible.builtin.file:
path: /etc/yum.repos.d/
state: directory
recurse: true
- name: Install centos-release-ceph
become: true
- dnf:
+ ansible.builtin.dnf:
name: "centos-release-ceph-{{ cephadm_ceph_release }}"
when: cephadm_use_package_from_distribution
- name: Enable Ceph base yum repository
become: true
- yum_repository:
+ ansible.builtin.yum_repository:
name: "{{ item.shortname }}"
description: "{{ item.name }}"
baseurl: "{{ item.url }}"
@@ -25,7 +25,7 @@
# NOTE(mnasiadka): cephadm bootstrap failing on jinja2 missing
- name: Install cephadm and jinja2
become: true
- dnf:
+ ansible.builtin.dnf:
name:
- cephadm
- python3-jinja2