iac/ansible/playbooks/alias.yml

15 lines
433 B
YAML
Raw Normal View History

2024-07-31 21:01:17 -04:00
---
- hosts: all
become: true
tasks:
- name: Add alias for docker compose up -d in .bashrc
lineinfile:
path: "/home/{{ ansible_user }}/.bashrc"
line: "alias dcu='docker compose up -d'"
state: present
- name: Add alias for docker compose down in .bashrc
lineinfile:
path: "/home/{{ ansible_user }}/.bashrc"
line: "alias dcd='docker compose down'"
state: present