From 200680e7c8cbd6b4426c3ce232568b1e06446bde Mon Sep 17 00:00:00 2001 From: boom2 Date: Thu, 21 Dec 2023 15:49:16 -0500 Subject: - renamed playbook to follow convention -- add /etc/rc.d/rc.M in 'fetch file playbook' for future clamav playbook --- .../system/16-test-slackware-version.yml | 52 ---------------------- 1 file changed, 52 deletions(-) delete mode 100644 ansible-practice/system/16-test-slackware-version.yml (limited to 'ansible-practice/system/16-test-slackware-version.yml') diff --git a/ansible-practice/system/16-test-slackware-version.yml b/ansible-practice/system/16-test-slackware-version.yml deleted file mode 100644 index ed19c03..0000000 --- a/ansible-practice/system/16-test-slackware-version.yml +++ /dev/null @@ -1,52 +0,0 @@ -# test slackware version on host w/ conditonals -# -# - use cases: -# - set conditions depending on the version -# ---- -- name: "16 - custom ansible - test slackware version" - hosts: dev - - tasks: - - name: Print os info - ansible.builtin.debug: - msg: - - "distro = {{ ansible_distribution }}" - - "distro major version = {{ ansible_distribution_major_version }}" - - "distro release = {{ ansible_distribution_release }}" - - "distro version = {{ ansible_distribution_version }}" - - - name: is os version '-current' - ansible.builtin.debug: - msg: this slackware distro is '-current ! - when: - - ansible_facts['distribution'] == "Slackware" - - ansible_facts['distribution_release'] == "current" - tags: ['is_current'] - - - name: os version is not '-current' - ansible.builtin.debug: - msg: this slackware distro is NOT '-current ! - when: - - ansible_facts['distribution'] == "Slackware" - - ansible_facts['distribution_release'] != "current" - tags: ['is_not_current'] - - -# "ansible_distribution": "Slackware", -# "ansible_distribution_major_version": "15", -# "ansible_distribution_release": "current", -# "ansible_distribution_version": "15.0+", -# -# -# "ansible_distribution": "Slackware", -# "ansible_distribution_major_version": "15", -# "ansible_distribution_release": "stable", -# "ansible_distribution_version": "15.0", - - -# References -# -# https://docs.ansible.com/ansible/latest/playbook_guide/playbooks_conditionals.html -# -# -- cgit v1.2.3-54-g00ecf