Skip to content

Commit 8a29978

Browse files
committedAug 1, 2024
add alias, fix apt playbook
1 parent 30e61eb commit 8a29978

File tree

2 files changed

+16
-1
lines changed

2 files changed

+16
-1
lines changed
 

‎ansible/playbooks/alias.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
---
2+
- hosts: all
3+
become: true
4+
tasks:
5+
- name: Add alias for docker compose up -d in .bashrc
6+
lineinfile:
7+
path: "/home/{{ ansible_user }}/.bashrc"
8+
line: "alias dcu='docker compose up -d'"
9+
state: present
10+
11+
- name: Add alias for docker compose down in .bashrc
12+
lineinfile:
13+
path: "/home/{{ ansible_user }}/.bashrc"
14+
line: "alias dcd='docker compose down'"
15+
state: present

‎ansible/playbooks/apt.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
- hosts: "*"
2-
become: yes
2+
become: true
33
tasks:
44
- name: apt
55
apt:

0 commit comments

Comments
 (0)
Please sign in to comment.