add alias, fix apt playbook

This commit is contained in:
Matt Reeves 2024-07-31 21:01:17 -04:00
parent 30e61eb523
commit 8a29978386
2 changed files with 16 additions and 1 deletions

View file

@ -0,0 +1,15 @@
---
- 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

View file

@ -1,5 +1,5 @@
- hosts: "*"
become: yes
become: true
tasks:
- name: apt
apt: