motd_news

motd_news

This role enables or disables motd_news on ubuntu systems.

Ubuntu's motd_news unfortunately is quite persistent when you try to disable or remove it, so this role tries to provide a way to disable it in the way it was apparently intended.

Badges

Ansible Role Workflow Status Markdownlint Workflow Status Badge Ansible Quality Score Ansible Role Downloads

Ansible Role

Role Variables

The following variables are available and set to following the following defaults in defaults/main.yml

motd_news_enable: false
motd_news_urls: https://motd.ubuntu.com
motd_news_wait: 5
  • motd_news_enable (bool) controls if the motd_news is enabled or disabled with the cache being truncated
  • motd_news_urls (string) whitespace separated urls of news services
  • motd_news_wait (string) timeout in seconds for fetches

Example Playbook

This role writes files as or from root so become is needed.

- hosts: motd_news_disable_hosts
  become: yes
  roles:
    - motd_news

- hosts: motd_news_enable_hosts
  become: yes
  roles:
    - { role: motd_news, motd_news_enable: true }

- hosts: motd_news_other_url_hosts
  become: yes
  roles:
    - { role: motd_news,
        motd_news_enable: true,
        motd_news_urls: "https://motd.example.com https://motd.ubuntu.com"
      }

You can of course define those variables on playbook_vars, group_vars or host_vars level.

License

MIT

Author Information

Christoph Kepler development@kepler.international

Is it any good

Yes

About

En-/Disables motd_news on Ubuntu

Install
ansible-galaxy install MarauderXtreme/ansible-role-motd-news
GitHub repository
License
mit
Downloads
28
Owner
DevOp Engineer that likes ansible, docker and tries to keep up with basic web development.