Skip to content

Commit

Permalink
2024-02-04 22:53:43 dotfiles updates
Browse files Browse the repository at this point in the history
  • Loading branch information
psadi committed Feb 4, 2024
1 parent 218815e commit 072bcdc
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
7 changes: 3 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ FROM debian:bookworm-slim as base
# --------------------------

RUN apt-get update && apt-get upgrade && apt-get install -y \
sudo python3 python3-pip && \
sudo python3-minimal python3-pip && \
pip3 install ansible --break-system-packages --no-cache-dir --no-warn-script-location && \
# --------------------------
# CREATE & CONFIGURE USER
Expand All @@ -20,11 +20,10 @@ WORKDIR /home/psadi

USER psadi

COPY --chown=psadi:psadi --chmod=755 . dotfiles
COPY --chown=psadi:psadi . dotfiles

ENV ANSIBLE_CONFIG=/home/psadi/dotfiles/ansible/ansible.cfg

RUN chmod 0600 dotfiles/ansible/.vault_pass && \
ansible-playbook dotfiles/ansible/site.yaml
RUN ansible-playbook dotfiles/ansible/site.yaml

ENTRYPOINT ["/usr/bin/zsh"]
8 changes: 4 additions & 4 deletions ansible/roles/cmd/tasks/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
- name: Configuring user shell
ansible.builtin.command: "{{ item }}"
args:
executable: /bin/sh
executable: /usr/bin/bash
become: true
loop:
- unlink /bin/sh
- ln -s /usr/bin/zsh /bin/sh
- chsh -s /usr/bin/zsh psadi
- "unlink /bin/s"
- "ln -s /usr/bin/zsh /bin/sh"
- "chsh -s /usr/bin/zsh psadi"

- name: Finalizing the installation
ansible.builtin.command: "{{ item }}"
Expand Down

0 comments on commit 072bcdc

Please sign in to comment.