1 2 3 4 5 6 7 8 9 10
--- - name: Make sure colorful ls hosts: server gather_facts: false tasks: - name: Add line lineinfile: path: ~/.bashrc state: present line: "alias ip='ip --color=auto'"