Ansible cleanup (#152)

* Update keys.yml
* simplifying ansible
This commit is contained in:
Yasser Isa 2024-01-22 21:05:23 -07:00 committed by GitHub
parent ae0cbf7f8c
commit 00d2c557dd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 8 additions and 12 deletions

View File

@ -1,6 +1,6 @@
---
zcash_swapfile_size: 1G
zcash_vm_swappiness: 1
zcash_vm_swappiness: 0
zcash_common_packages:
- apt-show-versions
- apt-transport-https

View File

@ -2,9 +2,5 @@
- include_tasks: repartition.yml
- include_tasks: update_everything.yml
- include_tasks: packages.yml
- include_tasks: make_swap.yml
- include_tasks: add_github_ssh_hostkey.yml
- include_tasks: hostname.yml
- include_tasks: motd.yml
- include_tasks: vim.yml
- include_tasks: auto_upgrades.yml

View File

@ -8,11 +8,13 @@
group: "{{ gitian_user }}"
mode: "0644"
with_items: "{{ zcash_developer_pubkeys }}"
ignore_errors: true
- name: Import Zcash developer public keys.
command: "gpg --import /tmp/{{ item.id }}.asc"
become_user: "{{ gitian_user }}"
with_items: "{{ zcash_developer_pubkeys }}"
ignore_errors: true
- name: Set Zcash developer public keys to ultimately trusted.
shell: >
@ -23,3 +25,4 @@
become_user: "{{ gitian_user }}"
args:
executable: /bin/bash
ignore_errors: true

View File

@ -72,8 +72,8 @@
- name: Add cgroup fs for LXC.
lineinfile:
dest: /etc/fstab
regexp: '^cgroup'
line: 'cgroup /sys/fs/cgroup cgroup defaults 0 0'
regexp: "^cgroup"
line: "cgroup /sys/fs/cgroup cgroup defaults 0 0"
state: present
- name: Install profile with environment variables.
@ -108,9 +108,6 @@
force: yes
become_user: "{{ gitian_user }}"
- include_tasks: keys.yml
tags: keys
- name: Clone git repository for Zcash.
git:
repo: "{{ zcash_git_repo_url }}"
@ -128,7 +125,7 @@
become_user: "{{ gitian_user }}"
- name: Set Git username.
command: "git config --global user.name \"{{ git_name }}\""
command: 'git config --global user.name "{{ git_name }}"'
become_user: "{{ gitian_user }}"
- name: Set Git email address.