aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2023-08-15 14:35:15 +0200
committerEgor Tensin <Egor.Tensin@gmail.com>2023-08-15 15:05:55 +0200
commit9445a3afcd83031424c71b248c171132af2871c3 (patch)
tree0826b84ce38c904c0ead8847e6c071c751b039db
parentletsencrypt: update README (diff)
downloadinfra-ansible-9445a3afcd83031424c71b248c171132af2871c3.tar.gz
infra-ansible-9445a3afcd83031424c71b248c171132af2871c3.zip
import my_dotfiles role
-rw-r--r--roles/my_dotfiles/README.md3
-rw-r--r--roles/my_dotfiles/tasks/main.yml12
2 files changed, 15 insertions, 0 deletions
diff --git a/roles/my_dotfiles/README.md b/roles/my_dotfiles/README.md
new file mode 100644
index 0000000..da82fdd
--- /dev/null
+++ b/roles/my_dotfiles/README.md
@@ -0,0 +1,3 @@
+This role sets up [my dotfiles]. Not really usable for anybody else.
+
+[my dotfiles]: https://github.com/egor-tensin/linux-home
diff --git a/roles/my_dotfiles/tasks/main.yml b/roles/my_dotfiles/tasks/main.yml
new file mode 100644
index 0000000..511483e
--- /dev/null
+++ b/roles/my_dotfiles/tasks/main.yml
@@ -0,0 +1,12 @@
+- name: Pull repositories
+ ansible.builtin.git:
+ accept_hostkey: true
+ dest: "~/workspace/personal/{{ item }}"
+ repo: "git@github.com:egor-tensin/{{ item }}.git"
+ loop:
+ - linux-home
+
+- name: Run setup.sh
+ ansible.builtin.command: ./setup.sh
+ args:
+ chdir: ~/workspace/personal/linux-home