add alias, fix apt playbook
This commit is contained in:
parent
30e61eb523
commit
8a29978386
2 changed files with 16 additions and 1 deletions
15
ansible/playbooks/alias.yml
Normal file
15
ansible/playbooks/alias.yml
Normal 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
|
|
@ -1,5 +1,5 @@
|
||||||
- hosts: "*"
|
- hosts: "*"
|
||||||
become: yes
|
become: true
|
||||||
tasks:
|
tasks:
|
||||||
- name: apt
|
- name: apt
|
||||||
apt:
|
apt:
|
||||||
|
|
Loading…
Reference in a new issue