Jeffery B.'s Blog
  • Home
  • Ansible
  • Openshift
  • Author
Subscribe
Tagged

ansible

A collection of 2 posts

ansible

Inline/Dynamic variable in Ansible playbook

I have an ansible playbook that setups my system and I have some aliases that I like to set, like alias apt-get='sudo apt-get' and alias yum='sudo yum'. Yes, I could create a block for Ubuntu and another for RedHat, but sometimes it's

  • Jeffery Bagirimvano
Jeffery Bagirimvano Jan 16, 2020 • 1 min read
ansible

Ansible: check_mode

One of those cool tricks: Checking if string exists in file and then decide whether to run a command or not - name: Check if ldap.example.com is configured lineinfile: dest: /etc/openldap/ldap.conf line: "URI ldap://ldap.example.com/" check_mode: yes register: presence # failed_

  • Jeffery Bagirimvano
Jeffery Bagirimvano Aug 28, 2018 • 1 min read
Jeffery B.'s Blog © 2025