]> git.phdru.name Git - ansible.git/commitdiff
Feat: Rename `*.yml` to `*.yaml`
authorOleg Broytman <phd@phdru.name>
Sat, 10 Dec 2022 23:38:22 +0000 (02:38 +0300)
committerOleg Broytman <phd@phdru.name>
Sat, 10 Dec 2022 23:40:39 +0000 (02:40 +0300)
83 files changed:
playbooks/ansible/cleanup-tmp.yaml [moved from playbooks/ansible/cleanup-tmp.yml with 100% similarity]
playbooks/ansible/list-tmp.yaml [moved from playbooks/ansible/list-tmp.yml with 100% similarity]
playbooks/ansible/show_facts.yaml [moved from playbooks/ansible/show_facts.yml with 100% similarity]
playbooks/cleanup-pip-cache.yaml [moved from playbooks/cleanup-pip-cache.yml with 100% similarity]
playbooks/debian/init-local-phd.yaml [moved from playbooks/debian/init-local-phd.yml with 100% similarity]
playbooks/debian/init-system.sh
playbooks/debian/sa-merge-all.yaml [moved from playbooks/debian/sa-merge-all.yml with 100% similarity]
playbooks/debian/update-all-apt.yaml [moved from playbooks/debian/update-all-apt.yml with 100% similarity]
playbooks/fetch-push/fetch
playbooks/fetch-push/fetch.yaml [moved from playbooks/fetch-push/fetch.yml with 100% similarity]
playbooks/fetch-push/push
playbooks/fetch-push/push.yaml [moved from playbooks/fetch-push/push.yml with 100% similarity]
playbooks/init-system.yaml [moved from playbooks/init-system.yml with 100% similarity]
playbooks/init-system2.yaml [moved from playbooks/init-system2.yml with 100% similarity]
playbooks/logcheck.yaml [moved from playbooks/logcheck.yml with 100% similarity]
playbooks/redhat/init-local-phd.yaml [moved from playbooks/redhat/init-local-phd.yml with 100% similarity]
playbooks/redhat/init-system.sh
playbooks/redhat/update-all-dnf.yaml [moved from playbooks/redhat/update-all-dnf.yml with 100% similarity]
playbooks/roles/cleanup-pip-cache/tasks/cleanup-user.yaml [moved from playbooks/roles/cleanup-pip-cache/tasks/cleanup-user.yml with 100% similarity]
playbooks/roles/cleanup-pip-cache/tasks/main.yaml [moved from playbooks/roles/cleanup-pip-cache/tasks/main.yml with 82% similarity]
playbooks/roles/cleanup-pip-cache/tasks/show-user.yaml [moved from playbooks/roles/cleanup-pip-cache/tasks/show-user.yml with 100% similarity]
playbooks/roles/debian/add-apache-vhost/handlers/main.yaml [moved from playbooks/roles/debian/add-apache-vhost/handlers/main.yml with 100% similarity]
playbooks/roles/debian/add-apache-vhost/meta/main.yaml [moved from playbooks/roles/debian/add-apache-vhost/meta/main.yml with 100% similarity]
playbooks/roles/debian/add-apache-vhost/tasks/add-vhost.yaml [moved from playbooks/roles/debian/add-apache-vhost/tasks/add-vhost.yml with 100% similarity]
playbooks/roles/debian/add-apache-vhost/tasks/dehydrated.yaml [moved from playbooks/roles/debian/add-apache-vhost/tasks/dehydrated.yml with 100% similarity]
playbooks/roles/debian/add-apache-vhost/tasks/main.yaml [moved from playbooks/roles/debian/add-apache-vhost/tasks/main.yml with 78% similarity]
playbooks/roles/debian/add-dns-domain/meta/main.yaml [moved from playbooks/roles/debian/add-dns-domain/meta/main.yml with 100% similarity]
playbooks/roles/debian/add-dns-domain/tasks/main.yaml [moved from playbooks/roles/debian/add-dns-domain/tasks/main.yml with 100% similarity]
playbooks/roles/debian/apache/handlers/main.yaml [moved from playbooks/roles/debian/apache/handlers/main.yml with 100% similarity]
playbooks/roles/debian/apache/meta/main.yaml [moved from playbooks/roles/debian/apache/meta/main.yml with 100% similarity]
playbooks/roles/debian/apache/tasks/main.yaml [moved from playbooks/roles/debian/apache/tasks/main.yml with 100% similarity]
playbooks/roles/debian/dehydrated/meta/main.yaml [moved from playbooks/roles/debian/dehydrated/meta/main.yml with 100% similarity]
playbooks/roles/debian/dehydrated/tasks/main.yaml [moved from playbooks/roles/debian/dehydrated/tasks/main.yml with 100% similarity]
playbooks/roles/debian/email/handlers/main.yaml [moved from playbooks/roles/debian/email/handlers/main.yml with 100% similarity]
playbooks/roles/debian/email/tasks/main.yaml [moved from playbooks/roles/debian/email/tasks/main.yml with 100% similarity]
playbooks/roles/debian/firewall/handlers/main.yaml [moved from playbooks/roles/debian/firewall/handlers/main.yml with 100% similarity]
playbooks/roles/debian/firewall/tasks/main.yaml [moved from playbooks/roles/debian/firewall/tasks/main.yml with 100% similarity]
playbooks/roles/debian/gitweb/meta/main.yaml [moved from playbooks/roles/debian/gitweb/meta/main.yml with 100% similarity]
playbooks/roles/debian/gitweb/tasks/main.yaml [moved from playbooks/roles/debian/gitweb/tasks/main.yml with 100% similarity]
playbooks/roles/debian/init-logcheck/tasks/main.yaml [moved from playbooks/roles/debian/init-logcheck/tasks/main.yml with 100% similarity]
playbooks/roles/debian/named/meta/main.yaml [moved from playbooks/roles/debian/named/meta/main.yml with 100% similarity]
playbooks/roles/debian/named/tasks/main.yaml [moved from playbooks/roles/debian/named/tasks/main.yml with 100% similarity]
playbooks/roles/debian/remove-systemd/tasks/main.yaml [moved from playbooks/roles/debian/remove-systemd/tasks/main.yml with 91% similarity]
playbooks/roles/debian/remove-systemd/tasks/remove-systemd.yaml [moved from playbooks/roles/debian/remove-systemd/tasks/remove-systemd.yml with 100% similarity]
playbooks/roles/debian/security/tasks/main.yaml [moved from playbooks/roles/debian/security/tasks/main.yml with 100% similarity]
playbooks/roles/dev-packages/tasks/main.yaml [moved from playbooks/roles/dev-packages/tasks/main.yml with 100% similarity]
playbooks/roles/docker/tasks/main.yaml [moved from playbooks/roles/docker/tasks/main.yml with 100% similarity]
playbooks/roles/init-system/tasks/apt.yaml [moved from playbooks/roles/init-system/tasks/apt.yml with 100% similarity]
playbooks/roles/init-system/tasks/dnf.yaml [moved from playbooks/roles/init-system/tasks/dnf.yml with 100% similarity]
playbooks/roles/init-system/tasks/locales.yaml [moved from playbooks/roles/init-system/tasks/locales.yml with 100% similarity]
playbooks/roles/init-system/tasks/main.yaml [moved from playbooks/roles/init-system/tasks/main.yml with 69% similarity]
playbooks/roles/logcheck/tasks/main.yaml [moved from playbooks/roles/logcheck/tasks/main.yml with 100% similarity]
playbooks/roles/mariadb/tasks/main.yaml [moved from playbooks/roles/mariadb/tasks/main.yml with 100% similarity]
playbooks/roles/ntpdate-hwc/tasks/main.yaml [moved from playbooks/roles/ntpdate-hwc/tasks/main.yml with 100% similarity]
playbooks/roles/openvpn/tasks/main.yaml [moved from playbooks/roles/openvpn/tasks/main.yml with 100% similarity]
playbooks/roles/packages/tasks/main.yaml [moved from playbooks/roles/packages/tasks/main.yml with 100% similarity]
playbooks/roles/phd/defaults/main.yaml [moved from playbooks/roles/phd/defaults/main.yml with 100% similarity]
playbooks/roles/phd/meta/main.yaml [moved from playbooks/roles/phd/meta/main.yml with 100% similarity]
playbooks/roles/phd/tasks/main.yaml [moved from playbooks/roles/phd/tasks/main.yml with 100% similarity]
playbooks/roles/postgres/tasks/main.yaml [moved from playbooks/roles/postgres/tasks/main.yml with 100% similarity]
playbooks/roles/python-dev-packages/meta/main.yaml [moved from playbooks/roles/python-dev-packages/meta/main.yml with 100% similarity]
playbooks/roles/python-dev-packages/tasks/main.yaml [moved from playbooks/roles/python-dev-packages/tasks/main.yml with 100% similarity]
playbooks/roles/python-packages/tasks/main.yaml [moved from playbooks/roles/python-packages/tasks/main.yml with 100% similarity]
playbooks/roles/qemu/tasks/main.yaml [moved from playbooks/roles/qemu/tasks/main.yml with 100% similarity]
playbooks/roles/redhat/firewall/handlers/main.yaml [moved from playbooks/roles/redhat/firewall/handlers/main.yml with 100% similarity]
playbooks/roles/redhat/firewall/tasks/main.yaml [moved from playbooks/roles/redhat/firewall/tasks/main.yml with 100% similarity]
playbooks/roles/root/meta/main.yaml [moved from playbooks/roles/root/meta/main.yml with 100% similarity]
playbooks/roles/root/tasks/main.yaml [new file with mode: 0644]
playbooks/roles/root/tasks/main.yml [deleted file]
playbooks/roles/root/tasks/mc.yaml [moved from playbooks/roles/root/tasks/mc.yml with 100% similarity]
playbooks/roles/root/tasks/root.yaml [moved from playbooks/roles/root/tasks/root.yml with 100% similarity]
playbooks/roles/setup-usrlocal/tasks/main.yaml [moved from playbooks/roles/setup-usrlocal/tasks/main.yml with 100% similarity]
playbooks/roles/smbclient/tasks/main.yaml [moved from playbooks/roles/smbclient/tasks/main.yml with 100% similarity]
playbooks/roles/smbserver/tasks/main.yaml [moved from playbooks/roles/smbserver/tasks/main.yml with 100% similarity]
playbooks/roles/sshd/handlers/main.yaml [moved from playbooks/roles/sshd/handlers/main.yml with 100% similarity]
playbooks/roles/sshd/tasks/main.yaml [moved from playbooks/roles/sshd/tasks/main.yml with 100% similarity]
playbooks/roles/sudo/meta/main.yaml [moved from playbooks/roles/sudo/meta/main.yml with 100% similarity]
playbooks/roles/sudo/tasks/main.yaml [moved from playbooks/roles/sudo/tasks/main.yml with 100% similarity]
playbooks/roles/wireguard/tasks/main.yaml [moved from playbooks/roles/wireguard/tasks/main.yml with 100% similarity]
playbooks/run-playbook
playbooks/run-roles
playbooks/run-roles.yaml [moved from playbooks/run-roles.yml with 100% similarity]
playbooks/update-root.yaml [moved from playbooks/update-root.yml with 100% similarity]

index ab4ba714777f89c2ba16a93778b2275f899e7b8a..3a3ef1b7bbabdbe4184d81f89e25c7a82e29ad46 100755 (executable)
@@ -15,7 +15,7 @@ ssh phd@$host exit &&
 cd "`dirname \"$0\"`" &&
 
 # `sudo` isn't configured yet too; use `su` and ask for root password.
-ansible-playbook ../init-system.yml "$@" -e hosts="$host" \
+ansible-playbook ../init-system.yaml "$@" -e hosts="$host" \
    --become-method=su -K &&
 ../run-roles debian/remove-systemd "$@" -e hosts="$host" &&
-exec ansible-playbook ../init-system2.yml "$@" -e hosts="$host"
+exec ansible-playbook ../init-system2.yaml "$@" -e hosts="$host"
index 1a1582338e0fbca29f7f2ad75959412ba5fdb4fb..c823cd94bbb848a1e43ed38f74a669ebb7ee9ea8 100755 (executable)
@@ -2,4 +2,4 @@
 
 start_dir="`pwd`" &&
 fetch_push_dir="`dirname \"$0\"`" &&
-exec "$HOME"/.virtualenvs/ansible/bin/ansible-playbook -v "$fetch_push_dir"/fetch.yml -e start_dir="$start_dir" "$@"
+exec "$HOME"/.virtualenvs/ansible/bin/ansible-playbook -v "$fetch_push_dir"/fetch.yaml -e start_dir="$start_dir" "$@"
index 624c75557945faca17700af4c9fc7618e46a5030..1953bb8d07736195d06edcfeccf8935b4349d372 100755 (executable)
@@ -2,4 +2,4 @@
 
 start_dir="`pwd`" &&
 fetch_push_dir="`dirname \"$0\"`" &&
-exec "$HOME"/.virtualenvs/ansible/bin/ansible-playbook -v "$fetch_push_dir"/push.yml -e start_dir="$start_dir" "$@"
+exec "$HOME"/.virtualenvs/ansible/bin/ansible-playbook -v "$fetch_push_dir"/push.yaml -e start_dir="$start_dir" "$@"
index c4423a9263ddb0219f3917bfbc45da2bc3b22c31..a8901f2d0e99dac91c750ecd2166cd5c4f9b2174 100755 (executable)
@@ -14,5 +14,5 @@ cd "`dirname \"$0\"`" &&
 
 # Passwordless access isn't configured yet; use `ssh` connection sharing.
 # `sudo` isn't configured yet too; ask for phd password.
-ansible-playbook ../init-system.yml "$@" -e hosts="$host" -K &&
-exec ansible-playbook ../init-system2.yml "$@" -e hosts="$host"
+ansible-playbook ../init-system.yaml "$@" -e hosts="$host" -K &&
+exec ansible-playbook ../init-system2.yaml "$@" -e hosts="$host"
similarity index 82%
rename from playbooks/roles/cleanup-pip-cache/tasks/main.yml
rename to playbooks/roles/cleanup-pip-cache/tasks/main.yaml
index 1368f7d26a5fbb1de58e878f18ca9a78ffaca8ad..1666509ecc48c61763b050cd853c35cc0ebd8bb8 100644 (file)
   changed_when: false
 
 - name: Cleanup ~phd/.cache/pip
-  import_tasks: cleanup-user.yml
+  import_tasks: cleanup-user.yaml
   vars:
     user: phd
   when: user_cache_exists.stat.exists
 
 - name: du ~phd/.cache/pip
-  import_tasks: show-user.yml
+  import_tasks: show-user.yaml
   vars:
     user: phd
   when: user_cache_exists.stat.exists
 
 - name: Cleanup ~root/.cache/pip
-  import_tasks: cleanup-user.yml
+  import_tasks: cleanup-user.yaml
   vars:
     become: true
     user: root
   when: root_cache_exists.stat.exists
 
 - name: du ~root/.cache/pip
-  import_tasks: show-user.yml
+  import_tasks: show-user.yaml
   vars:
     user: root
   when: root_cache_exists.stat.exists
similarity index 78%
rename from playbooks/roles/debian/add-apache-vhost/tasks/main.yml
rename to playbooks/roles/debian/add-apache-vhost/tasks/main.yaml
index 511a67676a96f1019f5d7cff98fe096173c05655..53baed268efa3cd5a093a312406c1ac31a057bfb 100644 (file)
@@ -6,7 +6,7 @@
 
 - block:
     - name: Add vhost
-      import_tasks: add-vhost.yml
+      import_tasks: add-vhost.yaml
     - name: Run dehydrated for the vhost
-      import_tasks: dehydrated.yml
+      import_tasks: dehydrated.yaml
   when: not vhost_conf.stat.exists
similarity index 91%
rename from playbooks/roles/debian/remove-systemd/tasks/main.yml
rename to playbooks/roles/debian/remove-systemd/tasks/main.yaml
index d8df2590ad76b81f5aa7e748e7597d94f9f716ad..f463ca3087a4097528b13f9e37e9bb1ffcc04484 100644 (file)
     force: no
 
 - name: Purge SystemD
-  import_tasks: remove-systemd.yml
+  import_tasks: remove-systemd.yaml
 
 - block:
     - name: Reboot if SystemD is still active
       become: true
       reboot:
     - name: Purge SystemD after reboot
-      import_tasks: remove-systemd.yml
+      import_tasks: remove-systemd.yaml
   when: "'rc' in purged and purged.rc != 0"
similarity index 69%
rename from playbooks/roles/init-system/tasks/main.yml
rename to playbooks/roles/init-system/tasks/main.yaml
index dccb754a0ff9e0b815e1eba8d4e6128eceaafc1f..262121ba0b9eb1e5bbb3a663840d07117521e89a 100644 (file)
@@ -1,11 +1,11 @@
 - name: apt
-  import_tasks: apt.yml
+  import_tasks: apt.yaml
   when: ansible_facts.os_family == 'Debian'
 
 - name: locales
-  import_tasks: locales.yml
+  import_tasks: locales.yaml
   when: ansible_facts.os_family == 'Debian'
 
 - name: packages
-  import_tasks: dnf.yml
+  import_tasks: dnf.yaml
   when: ansible_facts.os_family == 'RedHat'
diff --git a/playbooks/roles/root/tasks/main.yaml b/playbooks/roles/root/tasks/main.yaml
new file mode 100644 (file)
index 0000000..145325a
--- /dev/null
@@ -0,0 +1,5 @@
+- name: root
+  import_tasks: root.yaml
+
+- name: mc
+  import_tasks: mc.yaml
diff --git a/playbooks/roles/root/tasks/main.yml b/playbooks/roles/root/tasks/main.yml
deleted file mode 100644 (file)
index 9654fa7..0000000
+++ /dev/null
@@ -1,5 +0,0 @@
-- name: root
-  import_tasks: root.yml
-
-- name: mc
-  import_tasks: mc.yml
index b77bdd5dd0315b1d3706daac7378803ebfaa1ba1..00658a302e0090673c8e8cb67515accb6738e441 100755 (executable)
@@ -1,7 +1,7 @@
 #! /bin/sh
 
 if [ -z "$1" ]; then
-   echo "Usage: $0 playbook.yml [...params...]" >&2
+   echo "Usage: $0 playbook.yaml [...params...]" >&2
    exit 1
 fi
 
index 4251ac13e382f5accb17c8a17948ff0ea614a4b0..c752b9b1c2ef1976e476486153973c1a5a15e0e6 100755 (executable)
@@ -9,4 +9,4 @@ roles="$1"
 shift
 
 cd "`dirname \"$0\"`" &&
-exec ansible-playbook run-roles.yml "$@" -e roles="$roles"
+exec ansible-playbook run-roles.yaml "$@" -e roles="$roles"