Ansible - String

Card Puncher Data Processing

About

string data type in Ansible

Management

Lower

ansible_facts['os_family']|lower == 'redhat'

Split

{{ msg.split('\n') }}

Concat

  • Python concat operator
{{ stringVar + (integerVar|string) }}
  • Concat with pipe
{{ (var1 + var2 + var3) | hash('sha512') }}

To String

(integerVar | string)





Discover More
Card Puncher Data Processing
Playbook Variable

This article is variable inside a playbook, task, ... Single value Boolean Block of text Order...



Share this page:
Follow us:
Task Runner