Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setup Telegram-Send via ansible #108

Open
rapture-home opened this issue Jun 25, 2022 · 1 comment
Open

Setup Telegram-Send via ansible #108

rapture-home opened this issue Jun 25, 2022 · 1 comment

Comments

@rapture-home
Copy link

rapture-home commented Jun 25, 2022

Hi

So I am currently trying to automate the setup of telegram-send via ansible.

Is there are simple way to get the configuration done without having to interact with telegram-send --configure.

Thanks

@sachapan
Copy link

sachapan commented Oct 8, 2023

(I see this is an old issue but here's my 0.02)

If you already have a working configuration file........

I use ansible.builtin.copy to drop it into ~/.config/telegram-send.conf among other config files that my systems require.

ansible playbook:
- name: Copy $HOME files not under version control
ansible.builtin.copy:
src: "{{ item.src }}"
dest: "{{ item.dest }}"
mode: "{{ item.mode }}"
loop: "{{ config_files }}"
changed_when: false

var file:
config_files:

  • {
    src: "telegram-send.conf",
    dest: "$HOME/.config/telegram-send.conf",
    mode: "0600",
    }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants