8000 GitHub - ansible-city/swap: Swap file setup and configuration · GitHub
[go: up one dir, main page]

Skip to content
ansible-cityPublic

About

Swap file setup and configuration

Resources

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

 

History

5 Comm 8000 its

Folders and files

Repository files navigation

Swap

Master: Build Status
Develop: Build Status

This roles configures SWAP memory.

ansible.cfg

This role is designed to work with merge "hash_behaviour". Make sure your ansible.cfg contains these settings

[defaults]
hash_behaviour = merge

Installation and Dependencies

This role has no dependencies

Tags

This role uses two tags: build and configure

  • build - Creates swap file and configures system to use it.
  • configure - does nothing, kept for compatibility with 1.9 (missing tags causes errors)

Examples

To simply add swap to your server:

- name: Add swap memory to the server
  hosts: sandbox

  pre_tasks:
    - name: Update apt
      become: yes
      command: apt-get update
      tags:
        - build

  roles:
    - role: ansible-city.swap

About

Swap file setup and configuration

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages

0